Skip to content

Add fallback to trackOutboundLink#42

Merged
chrisgorgo merged 1 commit intobids-standard:gh-pagesfrom
jstutters:gh-pages
Feb 14, 2019
Merged

Add fallback to trackOutboundLink#42
chrisgorgo merged 1 commit intobids-standard:gh-pagesfrom
jstutters:gh-pages

Conversation

@jstutters
Copy link
Copy Markdown

External links from https://bids.neuroimaging.io (e.g. to the starter kit) are not active if the Google Tag Manager code cannot be loaded. Following the guidelines at https://hacks.mozilla.org/2016/01/google-analytics-privacy-and-event-tracking/ this commit adds a fallback to the trackOutboundLink function allowing tracked links to be followed in the event that the gtag object is not available e.g. due to network errors or client tracking protection.

TODO: confirm that tracking still functions with the fallback in place.

@chrisgorgo
Copy link
Copy Markdown

Thanks!

@chrisgorgo chrisgorgo merged commit 93f4420 into bids-standard:gh-pages Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants