analytics-google icon indicating copy to clipboard operation
analytics-google copied to clipboard

setCampaignFromUrl() not working

Open okanari2 opened this issue 10 years ago • 2 comments

Plugin works very well, pushes data to GA, but I neet to set campaing tracking variables (like utm_source etc) and I am using setCampaignFromUrl() methot to send campaign URL to GA. Nothing changes, there is no campaign data in GA(Google Anayitcs)

Could you please check the issue?

okanari2 avatar Jun 13 '15 10:06 okanari2

Yeah, I am also facing the same issue. @okanari2 Where you able to resolve it?

philecom avatar Jun 30 '15 11:06 philecom

Sorry for late response, have had an unmantained time...

Is your campaign url like this one?

String campaignData = "http://examplepetstore.com/index.html?" +
    "utm_source=email&utm_medium=email_marketing&utm_campaign=summer" +
    "&utm_content=email_variation_1";

Normally it should work, but if there is a builder which does not implement setCampaignParamsFromUrl method, then it will fail. Which method are you trying to track with campaign url? (is it an event, an screen view, etc...)

miqmago avatar Oct 27 '16 16:10 miqmago