Skip to content
Snippets Groups Projects
Commit 0e402915 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

make sure we are setting the version before pageview tracking.

parent a06d9078
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@ var MetabaseAnalytics = {
// scrub query builder urls to remove serialized json queries from path
url = (url.lastIndexOf('/q/', 0) === 0) ? '/q/' : url;
const { tag } = MetabaseSettings.get('version');
ga('set', 'dimension1', tag);
ga('set', 'page', url);
ga('send', 'pageview', url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment