Title: Integrate with Analytics
Last modified: August 31, 2016

---

# Integrate with Analytics

 *  [chrizzlefizzle](https://wordpress.org/support/users/chrizzlefizzle/)
 * (@chrizzlefizzle)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/)
 * Hi guys,
 * I am looking for a solution to integrate with Google Analytics:
 * How to..
 * 1. Add different utm-Parameter to the shared URL to see if traffic returns from
   that share
    (something like ?utm_source=twitter&utm_medium=sharing)
 * 2. Add event Tracking to the share bottons?
    (something like `onClick="ga('send','
   event', 'category', 'action', 'label', 'value');"`
 * Where can I add it? Anywhere in the settings or the shortcode directly or do 
   I have to add the information anywhere else?
 * Would be great if it works!
    Thanks for hints!
 * [https://wordpress.org/plugins/shariff/](https://wordpress.org/plugins/shariff/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076202)
 * Hi chrizzlefizzle,
 * there is currently no direct Google Analytics support. You could of course write
   a little piece of JavaScript that triggers a GA event evertime a button is pressed
   to record every click on a share button. Since I’m not an GA expert in any way,
   I cannot provide a solution for this myself right now. There hasen’t been much
   demand for GA support since the share counts are a little bit more meaningful
   and cover the same information for the most part.
 * Of course, if anyone comes up with an easy addition in regards to GA for our 
   plugin, we will happily incoporate the code and add an optional setting to our
   plugin to use it.
 * Cheers,
    JP
 *  Thread Starter [chrizzlefizzle](https://wordpress.org/support/users/chrizzlefizzle/)
 * (@chrizzlefizzle)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076259)
 * Hi JP,
 * thanks for the quick reply!
    Can you tell me in where to find the place where
   the URLs are built? Maybe I can try to add some code with a functionality plugin…
 * Best, chrizzlefizzle
 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076290)
 * Hi chrizzlefizzle,
 * I’ll look into this matter on the weekend, probably on Sunday, and let you know,
   if we can implement something or at least how you could get started.
 * JP
 *  Plugin Author [Jan-Peter](https://wordpress.org/support/users/starguide/)
 * (@starguide)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076299)
 * Hi chrizzlefizzle,
 * so I’ll looked into this. The urls are generated in the shariff.js. The only 
   problem is, that we are going to change this in the near future, therefore it
   wouldn’t make much sense to change something there right now. I’ll put the whole
   Google Analytics thing on my to-do list, but it will only be implemented after
   the next major release, when we changed the way how the buttons are generated.
 * Of course you could always figure something out to track all outbound links, 
   which include the share links. There are some examples on the web how to track
   outbound links with Google Analytics by adding a small JavaScript.
 * JP
 *  Thread Starter [chrizzlefizzle](https://wordpress.org/support/users/chrizzlefizzle/)
 * (@chrizzlefizzle)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076301)
 * OK, thank you, JP. That sounds great!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Integrate with Analytics’ is closed to new replies.

 * ![](https://ps.w.org/shariff/assets/icon.svg?rev=2006307)
 * [Shariff Wrapper](https://wordpress.org/plugins/shariff/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shariff/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shariff/)
 * [Active Topics](https://wordpress.org/support/plugin/shariff/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shariff/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shariff/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [chrizzlefizzle](https://wordpress.org/support/users/chrizzlefizzle/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/integrate-with-analytics/#post-7076301)
 * Status: not resolved