-
Notifications
You must be signed in to change notification settings - Fork 1
About
Google Analytics Snippet Pack for Visual Studio helps you write global site tag (gtag.js) code that allows you to send event data to Google Analytics. This extends the snippets in the Visual Studio's code snippet manager. Due to the nature of this extension, you will find these snippets in HTML and JavaScript Google Analytics Snippet Pack is compatible right from Visual Studio 2012 to 2017 (Community, Professional and Enterprise).
Google Analytics Snippet Pack is a snippet pack, meaning, you can access these snippets from Visual Studio's code snippet manager, as pictured below.
While writing code in the editor, you can bring up snippets from Google Analytics Snippet Pack by using the shortcut keys Ctrl K + Ctrl X
. The GIF below shows what happens after the keyboard shortcuts are entered in.
OR, if you would like to send an event from JavaScript, you could do something like this -
Google Analytics Snippet Pack Copyright © 2018 Clyde D'Souza