Esempio n. 1
0
 public function promoPiwikPro()
 {
     $view = new View('@PiwikPro/promoPiwikProWidget');
     $promo = $this->promo->getContent();
     $view->ctaLinkUrl = $this->advertising->getPromoUrlForOnPremises('PromoWidget', $promo['campaignContent']);
     $view->ctaText = $promo['text'];
     $view->ctaLinkTitle = $this->promo->getLinkTitle();
     return $view->render();
 }
 public function test_addPromoCampaignParametersToUrl_withQuery()
 {
     $url = $this->exampleUrl . '?foo=bar';
     $link = $this->advertising->addPromoCampaignParametersToUrl($url, 'MyName', 'Installation_Start');
     $this->assertSame($url . '&pk_campaign=MyName&pk_medium=Installation_Start&pk_source=Piwik_App', $link);
 }