• 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?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter jamesb4551

    (@jamesb4551)

    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?

    Chris

    (@mastertechmag)

    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]

    Thread Starter jamesb4551

    (@jamesb4551)

    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(“https://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.

    Thread Starter jamesb4551

    (@jamesb4551)

    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=”https://url/to/your.swf&#8221; width=”787″ height=”70″>
    <param name=”movie” value=”https://url/to/your.swf&#8221; />
    </object>

    / a

    Does anyone have a solution to this?

    Thread Starter jamesb4551

    (@jamesb4551)

    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.

    Thread Starter jamesb4551

    (@jamesb4551)

    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.?

    Chris

    (@mastertechmag)

    this might help:

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

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

    https://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(”https://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=”https://www.njplaygrounds.com/blog-n-photos/wp-content/uploads/2009/10/playguide.swf&#8221; height=”60″ width=”468″ /]

    and my analytics code is in my footer..

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

    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?

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

    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

    Thread Starter jamesb4551

    (@jamesb4551)

    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….

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Help tracking outgoing swf clicks using google analytics.’ is closed to new replies.