Forum Moderators: open
I'm stuck...
I've created a flash banner that on rollover changes to a form and onrelease posts the variables - this works fine
My confusion is when I need to include the clickTAG script for adwords tracking.
The code I've used is simple and is the following:
on (release) {
getURL("(URL address blocked: See forum rules)", "_parent", "POST");
}
----
and the code I need to add for the clickTag is:
on (release) {
if (clickTAG.substr(0,5) == "https:") {
getURL(clickTAG, "_blank");
}
}
---
If I have both on codes one after the other will google track correctly? Is there another way that I can pass the variables to the URL that is defined in adwords via the clickTAG?
Cheers
Si
I have managed to get most of the way to working this out but it is only passing the first of the 4 variables to the url - can anyone see why?
on (release)
{
if((_root.clickTAG.indexOf("http://") == 0) ¦¦ (_root.clickTAG.indexOf("https://") == 0))
{
qs = "first_name=" + escape(first_name) + "&last_name=" + escape(last_name) + "&home_phone=" + escape(home_phone) + "&email_address=" + escape(email_address);
getURL(_root.clickTAG + qs , "_blank");
}
}
cheers
Si
on (release)
{
if((_root.clickTAG.indexOf("http://") == 0) ¦¦ (_root.clickTAG.indexOf("https://") == 0))
{
qs = "first_name=" + escape(first_name) + "%26last_name=" + escape(last_name) + "%26home_phone=" + escape(home_phone) + "%26email_address=" + escape(email_address);
getURL(_root.clickTAG + qs , "_blank");
}
trace("first_name=" + escape(first_name) + "%26last_name=" + escape(last_name) + "%26home_phone=" + escape(home_phone) + "%26email_address=" + escape(email_address));
}