diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-06-02 05:00:18 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-06-02 05:00:18 +0400 |
commit | 11e5d2ea1bd1446703ff542e3cc1ead2b705d285 (patch) | |
tree | b807643cfb6eefc4aa2fc12bd340546d51c6fe6a /plugins/CoreHome/templates/piwik_tag.tpl | |
parent | 868e2257f9b067a3e05a95e3b6590d5dd6f41780 (diff) |
- pushing new tag in the demo's footer
Diffstat (limited to 'plugins/CoreHome/templates/piwik_tag.tpl')
-rw-r--r-- | plugins/CoreHome/templates/piwik_tag.tpl | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/plugins/CoreHome/templates/piwik_tag.tpl b/plugins/CoreHome/templates/piwik_tag.tpl index ef25de38d4..46145669f9 100644 --- a/plugins/CoreHome/templates/piwik_tag.tpl +++ b/plugins/CoreHome/templates/piwik_tag.tpl @@ -2,19 +2,16 @@ <div style="clear:both"></div> {literal} <!-- Piwik --> -<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);"> <script language="javascript" src="piwik.js" type="text/javascript"></script> <script type="text/javascript"> -<!-- -piwik_action_name = ''; -piwik_idsite = 1; -piwik_url = 'piwik.php'; -piwik_vars = { 'video_play':1, 'video_finished':0 }; -piwik_log(piwik_action_name, piwik_idsite, piwik_url, piwik_vars); -//--> -</script><object> -<noscript><p>Web analytics <img src="piwik.php" style="border:0" alt="piwik"/></p> -</noscript></object></a> -<!-- /Piwik --> +try { + var piwikTracker = Piwik.getTracker("piwik.php", 1); + piwikTracker.setCustomData({ 'video_play':1, 'video_finished':0 }); + piwikTracker.setDocumentTitle(''); + piwikTracker.trackPageView(); + piwikTracker.enableLinkTracking(); +} catch(err) {} +</script> +<!-- End Piwik Tag --> {/literal} {/if} |