Skip to content

Commit

Permalink
use ga send instead _gaq.push
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Sep 2, 2016
1 parent 4614d58 commit 2766a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webapp/htdocs/Google-Analytics/GA-universal.xslt
Expand Up @@ -131,7 +131,7 @@ function Yanel_requestURIFromFQURL(HTMLAelement) {

<xsl:copy>
<xsl:apply-templates select="@*[name() != 'onclick']"/>
<xsl:attribute name="onclick">_gaq.push(['_trackEvent', 'File', 'Download', '<xsl:value-of select="$URL"/>']);<xsl:value-of select="@onclick"/></xsl:attribute>
<xsl:attribute name="onclick">ga('send', 'event', 'File', 'Download', '<xsl:value-of select="$URL"/>');<xsl:value-of select="@onclick"/></xsl:attribute>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
Expand Down

0 comments on commit 2766a14

Please sign in to comment.