Skip to content

Commit

Permalink
Update angular-google-analytics.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Lanning committed Aug 8, 2014
1 parent a0a5454 commit 210b070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/angular-google-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ angular.module('angular-google-analytics', [])
if (!accountId) return;
$window._gaq = [];
$window._gaq.push(['_setAccount', accountId]);
if(domainName) $window._gaq.push(['_setDomainName', domainName]);
if (enhancedLinkAttribution) {
$window._gaq.push(['_require', 'inpage_linkid', '//www.google-analytics.com/plugins/ga/inpage_linkid.js']);
}
Expand All @@ -116,7 +117,6 @@ angular.module('angular-google-analytics', [])
$window._gaq.push(['_trackPageview']);
}
}
if(domainName) $window._gaq.push(['_setDomainName', domainName]);
(function() {
var document = $document[0];
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
Expand Down

0 comments on commit 210b070

Please sign in to comment.