Skip to content

Instantly share code, notes, and snippets.

@padicode
padicode / gist:5364916
Last active December 16, 2015 02:49 — forked from anonymous/gist:5318836
<script>
if ({{pageName}} == 'article')
{
//set the dimension id that is set inside Google Analytics for each dimension
ga('set', 'dimension1', {{postCategory}});
ga('set', 'dimension3', {{postTitle}});
ga('set', 'dimension4', {{postType}});
}
if ({{pageName}} == 'archive')
{