-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from slanningGH/dev
Moving setDomainName. Thank you slanningGH! Those are some great changes, and with test coverage. Fantastic.
- Loading branch information
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/** | ||
* Angular Google Analytics - Easy tracking for your AngularJS application | ||
* @version v0.0.6 - 2014-10-07 | ||
* @version v0.0.6 - 2014-10-14 | ||
* @link http://github.com/revolunet/angular-google-analytics | ||
* @author Julien Bouquillon <[email protected]> | ||
* @license MIT License, http://www.opensource.org/licenses/MIT | ||
|
@@ -125,6 +125,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']); | ||
} | ||
|
@@ -135,7 +136,6 @@ angular.module('angular-google-analytics', []) | |
$window._gaq.push(['_trackPageview']); | ||
} | ||
} | ||
if(domainName) $window._gaq.push(['_setDomainName', domainName]); | ||
var gaSrc; | ||
if(displayFeatures) { | ||
gaSrc = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters