WordPress.org

Ready to get started?Download WordPress

Forums

Help tracking outgoing swf clicks using google analytics. (14 posts)

  1. jamesb4551
    Member
    Posted 5 years ago #

    Hey guys, I have a few banner ads I want to track from time to time in analytics. I have the google analytics plugin installed and found a javascript to track all outgoing clicks on static images etc but it doesn't seem to work for swfs. Any ideas on how to track outgoing clicks on swfs without modifying the actionscript in the source flash file?

  2. jamesb4551
    Member
    Posted 5 years ago #

    I can't get my head around the google docs for it and I can't seem to find a tutorial or reference anywhere, I can find scripts to track downloads etc, but all I want is to know if anyone clicked on the banner ad .swf to leave the site????
    Anyone?

  3. mastertechmag
    Member
    Posted 5 years ago #

    hi james - i can't help answer your question, but you're not alone. we have advertisers who are using SWF and can't track anything... maxbanner ad pro will track impressions.... but not clicks and cpi of swf files...

    i'm trying to work out the google analytics docs as well -- are you able to share what you have?? maybe we can figure it out?

    -Chris
    [email moderated]

  4. jamesb4551
    Member
    Posted 5 years ago #

    I can figure out how to track then IF you can get the fla and add code to it which is something like this:

    on(release) {
    getURL("javascript: pageTracker._trackPageview
    ('/bannerads/advertisername/bannername');");
    getURL("http://www.advertisersite.com");
    }
    }

    But I can't get still how to just track an .swf that your given from an advertiser. There is a way somewhere stated in the google docs but that documentation needs a 'for dummies' version as I don't have PHD in molecular science.

  5. jamesb4551
    Member
    Posted 4 years ago #

    This is still an issue with no real solution anywhere that I can find on the web. The google docs don't really explain everything very well and the only way I can see to track outgoing clicks from an swf is if you actually put the page tracking code within the swf. But this is not a solution for swf's that you get from clients etc so how would you track that?

    Close as I have found that should work but doesn't is by trying to wrap the whole thing in a href, but yeah that has not produced any results...

    a href="#" onClick="pageTracker._trackEvent('Outgoinglinks', 'ExitClick', 'AdName');"

    <object type="application/x-shockwave-flash" data="http://url/to/your.swf" width="787" height="70">
    <param name="movie" value="http://url/to/your.swf" />
    </object>

    / a

    Does anyone have a solution to this?

  6. jamesb4551
    Member
    Posted 4 years ago #

    OK that script is working, (above), you just wrap the swf's in 'a href' and give them there individual names in the 'AdName' section and then in analytics there is a section called 'events' where you will find all the info relevant to what you have wrapped this code around.

  7. jamesb4551
    Member
    Posted 4 years ago #

    Oops, spoke too soon, it works in Firefox, but not in safari, turns out in safari it just takes you to the top of the page when clicked, any ideas on this anyone.?

  8. mastertechmag
    Member
    Posted 4 years ago #

    this might help:

    https://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55520

  9. njplaygrounds
    Member
    Posted 4 years ago #

    jamesb4551, I have a similar problem, any resolution? The flash banner I made

    http://www.njplaygrounds.com/blog-n-photos/?p=2292

    doesn't show up on some computers, and I clicked on the ad last night to see if it shows up on analytics under top content and it doesn't:

    I changed the flash code for the swf as directed by a helpful site:

    on(release) {
    getURL(”javascript: pageTracker._trackPageview
    (’/bannerads/advertisername/bannername’);”);
    getURL(”http://www.advertisersite.com”);

    I'm using KML flash embed plugin not sure if that has something to do with it.. this is what I have on my post

    [kml_flashembed movie="http://www.njplaygrounds.com/blog-n-photos/wp-content/uploads/2009/10/playguide.swf" height="60" width="468" /]

    and my analytics code is in my footer..

    anyone else? I don't know why it still doesn't work..

  10. leandrocc
    Member
    Posted 4 years ago #

    Anyone willing to help us here?

    From this google analytics help I also see the same code njplaygrounds above said.

    But I don't know what's the code to show the swf-file in my page in order to track outbound clicks on it.

    Should it be inside a "a ref" as jamesb4551 suggested up there? And where should I put the on(release)... code?

  11. dias67
    Member
    Posted 4 years ago #

    To jamesb4551
    Don't you think a href="#" is an anchor that sends you to the top of the page ?

  12. dias67
    Member
    Posted 4 years ago #

    To Jamesb4551

    Ok, sorry, I didn't knew it was like:
    a href="javascript:;"

    I get the same result: ok on firefox, but not on Safari.

    Have you solved the problem ?

    Thanks

  13. dias67
    Member
    Posted 4 years ago #


  14. jamesb4551
    Member
    Posted 4 years ago #

    Sorry no I gave up on that sometime ago, the only solution I found was to manually code it into the flash, which is annoying but works, I heard there is a way to do with Java I'll try and find the link....

Topic Closed

This topic has been closed to new replies.

About this Topic