mardi 28 juin 2016

Tracking individual source traffic in wordpress with utm parameters

We have a site where we publish viral and trending content. The website is currently built in HTML. We work with social media publishers to publish this content on their social media pages, i.e. FB, Twitter, etc.

Since our primary source of revenue is through advertising, when we provide the URLs to our publishers, we append UTM parameters in the URLs to allow individual tracking of each publisher's traffic being sent to our site. For example:

Publisher 1: http://ift.tt/296wgza

Publisher 2: http://ift.tt/292cEJP

Then in our 3rd party system we can see:

UTM Source: Pub1 Pageviews: ####### Earnings: $$$$$$

UTM Source: Pub2 Pageviews: ####### Earnings: $$$$$$

We have implemented some javascript code on our pages that keeps all (UTM) parameters after the ? in the URL from page to page and all links on the pages. This allows us to associate the user's activity as they navigate through the site to that particular publisher. This is also used for earnings allocation/tracking.

Since we have decided to move to Wordpress for our content management, I have been thoroughly searching the web for a solution to replicate the above for Wordpress and have not been successful.

To provide some context over what I've found and tried so far:

  1. Modifying/adding php code in functions.php to pass a Query-string: Did not work. The UTM parameters still disappears.
  2. Tried numerous plugins (20+) with no success. Everything from Affiliate management, link grabbers, UTM params, lead generation, SEO, etc., etc...
  3. Implementing our existing UTM javascript code (as best I could with my extremely limited php knowledge), also did not work.
  4. Tried modifying Google Analytics code to accept "#" instead of ?. Also didn't work.

Having said the above, I'm open if the method we currently use on our HTML site is not the same way we would/should use in Wordpress. As long as it meets these requirements:

  • Be able to track individual traffic source (from a publishers) based on the links we provide to our content
  • Be able to track the user from that particular (publisher's) source through our site and able to allocate traffic such as pageviews / revenue (if they click on ads) to that particular source
  • Not be overly complicated. My php knowledge is less than a beginner's
  • The sources as mentioned will be changing for the same content, so a source can't be hardcoded (if that makes any sense).

Hopefully there's a solution I've clearly missed because I'm all out of ideas at the moment.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire