Results 1 to 2 of 2

Thread: Event Tracking Analyitics for Coupon and Store Links

  1. #1
    Thread Starter
    Junior Member rogerlilley's Avatar
    Join Date
    Jan 2012
    Location
    United States
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Event Tracking Analyitics for Coupon and Store Links

    Would love to track these outbound clicks from /go/ and /go-store/ as events in GA. I have a plugin installed from yoast that will add the proper onclick= tag to the <a> but it only works on the blog posts section of clipper.

    I have tried to manually add an <a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>, as an example from google, to the outbound links in both taxonomy-stores-.php and the loop-coupon.php. When I added it it does work and will track, however it breaks the automatic copy to clipboard function on the coupon links.

    For example in taxonomy-stores.php i changed the line for the store URL to look like this.

    <p class="store-url"><a href="<?php echo $url_out; ?>" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);" target="_blank"><?php echo $stores_url; ?></a></p>

    Works for GA but breaks the auto copy to clipboard.

    Any idea how I can implement this without breaking that function?

  2. #2
    texasmax's Avatar
    Join Date
    Jan 2013
    Location
    United States
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Where to put the affiliate link? In store url or coupon url ?
    By djcfranse in forum Report Clipper Bugs
    Replies: 5
    Last Post: May 3rd, 2013, 01:40 PM
  2. Replies: 1
    Last Post: October 27th, 2011, 05:46 AM
  3. [SOLVED] Links to Store Websites in a New Page
    By peter1111 in forum Report Clipper Bugs
    Replies: 3
    Last Post: August 27th, 2011, 12:00 PM
  4. Coupon link not to the store site
    By redbaron in forum Report Clipper Bugs
    Replies: 6
    Last Post: July 15th, 2011, 01:24 AM