Campaing tracking in Flash ClickTAG

Today we encountered a problem. Nothing showed up in Google Analytics tracking campaigns. We used a clickTAG code to swfobject (a.k.a FlashObject) like this:

so.addVariable(“clickTAG”, “http://domain.com/some_page/?utm_source=Banner&utm_medium=Banner&utm_campaign=Banner3”);

But the banner link only went to “http://domain.com/some_page/?utm_source=Banner”. After a bit of research I found out that Flash didn`t accept anything that’s after the ampersand &. Some suggested using & instead of &, but it did not work. I`m not sure if it`s a problem of Flash or SWFobject, but anyway I found a simple solution – use javascript escape() function to translate the URL, like this:

so.addVariable(“clickTAG”, escape(“http://domain.com/some_page/?utm_source=Banner&utm_medium=Banner&utm_campaign=Banner3”));

Voila! Now the banner opens full URL with tracking code! I think this is a problem with other tracking and ad network users also.
I hope this helps someone! :)

Author: Valters Bože

abstract person

Leave a Reply

Your email address will not be published. Required fields are marked *