Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This snippet goes in your tumblr html theme right after you've loaded the analytics.js library.
- // Use this to replace analytics.page() in the generic analytics.js library setup code.
- // Homepage blog views will be tracked as analytics.page("Blog", "Home"),
- // whereas individual post views will be tracked as analytics.page("Blog", "Post") with metadata.
- {block:PermalinkPage}
- {block:Posts}
- {block:Text}
- {block:Title}
- analytics.page("Blog", "Post", {
- postTitle: "{PlaintextTitle}",
- postId: {PostID}
- });
- {/block:Title}
- {/block:Text}
- {/block:Posts}
- {/block:PermalinkPage}
- {block:IndexPage}
- analytics.page("Blog", "Home");
- {/block:IndexPage}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement