Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix autotrack #2

Merged
merged 1 commit into from Apr 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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