homepage Welcome to WebmasterWorld Guest from 54.196.159.11
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
clickTAG with form POST
Trouble using clickTAG with form POST in a Flash banner
devilsap




msg:3602817
 12:00 pm on Mar 17, 2008 (gmt 0)

Hi,

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

 

devilsap




msg:3603074
 4:58 pm on Mar 17, 2008 (gmt 0)

Ok, further development------

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

superfang 2000




msg:3618569
 10:54 pm on Apr 3, 2008 (gmt 0)

So, were you able to make it work? I am very curious whether or not Google AdWords, for example, will send these additional parameters to your final landing page.

devilsap




msg:3618806
 7:41 am on Apr 4, 2008 (gmt 0)

Hey Superfang,

From the lack of posts i didn't think anyone was interested in plight!

Yes it does work, just had to use the ACSII codes for the & and it does work nicely...

superfang 2000




msg:3619455
 8:31 pm on Apr 4, 2008 (gmt 0)

Cool, congratulations. Could you post the code here, to help me (and future people who run across the same problem)?

devilsap




msg:3620683
 7:59 am on Apr 7, 2008 (gmt 0)

here is the code I used to get it working:

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));
}

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved