Keyword

Google Tracking Code

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
7 years 2 months ago - 7 years 2 months ago #160300 by Odin Mayland
Google Tracking Code was created by Odin Mayland
Is there a way to implement the Google Analytics Event Tracking Code for mp3s that are played/paused using Allvideos in K2-media?
Last edit: 7 years 2 months ago by Odin Mayland.

Please Log in or Create an account to join the conversation.

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
7 years 2 months ago #160340 by Odin Mayland
Replied by Odin Mayland on topic Google Tracking Code
I can't believe that I am the only one that wants to make sure Google Analytics tracks the events for k2-media?

Someone please help...

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #160377 by Krikor Boghossian
Replied by Krikor Boghossian on topic Google Tracking Code
Can you send me a link to your site?
Is it stock AllVideos?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Odin Mayland
  • Odin Mayland's Avatar Topic Author
  • Offline
  • Platinum Member
More
7 years 2 months ago #160394 by Odin Mayland
Replied by Odin Mayland on topic Google Tracking Code
www2.icd10monitor.com/exclusive-icd-10-s-most-challenging-coding-issue-ob

For now I hacked /plugins/content/jw_allvideos/jw_allvideos/includes/sources.php
/* -------------------------------- Embed templates for AUDIO -------------------------------- */
$audioPlayerEmbed = "
<div id=\"avID_{SOURCEID}\" style=\"width:{WIDTH}px;height:{HEIGHT}px;\" title=\"JoomlaWorks AllVideos Player\"></div>
<script type=\"text/javascript\">
	jwplayer('avID_{SOURCEID}').setup({
		'file': '{SITEURL}/{FOLDER}/{SOURCE}.{FILE_EXT}',
		'height': '{HEIGHT}',
		'width': '{WIDTH}',
		'autostart': '{PLAYER_AUTOPLAY}',
		'repeat': '{PLAYER_LOOP}',
		'controls': '{JWPLAYER_CONTROLS}',
				events: {
onPlay: function(event) { _gaq.push(['_trackEvent', 'TTTPodcasts', 'Play', '{SOURCE}']);
} }
	});
</script>
";

But i would of course prefer not to hack it to get traacking on the pause and Play of the mp3.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 2 months ago #160422 by Krikor Boghossian
Replied by Krikor Boghossian on topic Google Tracking Code
For now this will do

Think a more global solution is need using Google's API if you have the time.
developers.google.com/analytics/

The idea would be on an event (can be jQuery's on() or click() ) and manually assign the parameters inside the _gaq array.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum