Skip to content

Commit

Permalink
Fix autotrack
Browse files Browse the repository at this point in the history
  • Loading branch information
zackhsi committed Apr 13, 2017
1 parent 759efaa commit ce02b9a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
27 changes: 27 additions & 0 deletions content/assets/autotrack.custom.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions content/assets/autotrack.custom.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/AppContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ if (typeof window !== "undefined") {
// https://github.com/googleanalytics/autotrack

// most important plugin for phenomic
require("autotrack/lib/plugins/url-change-tracker")
ga("require", "urlChangeTracker")

// some plugins you might like
require("autotrack/lib/plugins/clean-url-tracker")
ga("require", "cleanUrlTracker")
require("autotrack/lib/plugins/outbound-form-tracker")
ga("require", "outboundFormTracker")
require("autotrack/lib/plugins/outbound-link-tracker")
ga("require", "outboundLinkTracker")

// check out more here https://github.com/googleanalytics/autotrack#plugins
Expand All @@ -48,6 +44,9 @@ const AppContainer = (props) => (
scripts={ [
// GOOGLE Analytics, part 2/2
{ async: true, src: "https://www.google-analytics.com/analytics.js" },
// Generated with:
// ./node_modules/autotrack/bin/autotrack -o scripts/autotrack.custom.js -p eventTracker,outboundLinkTracker,urlChangeTracker,outboundFormTracker,cleanUrlTracker
{ async: true, src: "assets/autotrack.custom.js" },
] }
/>
<Header />
Expand Down

0 comments on commit ce02b9a

Please sign in to comment.