An open API service indexing awesome lists of open source software.

https://github.com/clydedz/google-analytics-snippets-vscode

Google Analytics Snippets for Visual Studio Code helps you write global site tag (gtag.js) code with ease. Google Analytics's gtag.js code allows you to send event data to Google Analytics.
https://github.com/clydedz/google-analytics-snippets-vscode

code-snippets google google-analytics google-analytics-snippets html javascript json mocha mocha-tests snippets visual-studio visual-studio-code vscode vscode-extension vscode-snippets vsix

Last synced: 4 months ago
JSON representation

Google Analytics Snippets for Visual Studio Code helps you write global site tag (gtag.js) code with ease. Google Analytics's gtag.js code allows you to send event data to Google Analytics.

Awesome Lists containing this project

README

        

## Google Analytics Snippets for VS Code
Google Analytics Snippets for Visual Studio Code helps you write global site tag (gtag.js) code with ease. Google Analytics's gtag.js code allows you to send event data to Google Analytics.

[![Build status](https://clydedsouza.visualstudio.com/Google%20Analytics%20Snippet%20Pack/_apis/build/status/GA%20Snippets%20VS%20Code%20Master)](https://clydedsouza.visualstudio.com/Google%20Analytics%20Snippet%20Pack/_build/latest?definitionId=24)
[![Azure DevOps tests](https://img.shields.io/azure-devops/tests/clydedsouza/Google%20Analytics%20Snippet%20Pack/24.svg)](https://clydedsouza.visualstudio.com/Google%20Analytics%20Snippet%20Pack/_build/latest?definitionId=24)
[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/clydedsouza.google-analytics-snippets-vscode.svg?color=green)](https://marketplace.visualstudio.com/items?itemName=clydedsouza.google-analytics-snippets-vscode)
[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/clydedsouza.google-analytics-snippets-vscode.svg?color=green)](https://marketplace.visualstudio.com/items?itemName=clydedsouza.google-analytics-snippets-vscode)
[![GitHub](https://img.shields.io/github/license/clydedz/google-analytics-snippets-vscode.svg)](https://github.com/ClydeDz/google-analytics-snippets-vscode/)
[![Tweet](https://img.shields.io/static/v1.svg?label=Tweet%20about%20this&message=%F0%9F%8E%B5&color=blue&logo=twitter&style=social)](https://ctt.ac/KFdPc)

## How to use?
The Google Analytics Snippet Pack adds snippets for HTML and JavaScript. The GIF below shows Google Analytics Snippets being used in an HTML document.

![GIF showing HTML Google Analytics Snippet Pack in use](https://raw.githubusercontent.com/ClydeDz/google-analytics-snippets-vscode/master/images/html-snippet-action.gif)

OR, if you would like to send an event from JavaScript, you could do something like this -

![GIF showing JavaScript Google Analytics Snippet Pack in use](https://raw.githubusercontent.com/ClydeDz/google-analytics-snippets-vscode/master/images/js-snippet-action.gif)

## Feedback
If you want to submit any feedback and/or issues with this snippet pack, feel free to [create a new ticket on GitHub](https://github.com/ClydeDz/google-analytics-snippets-vscode/issues) and let me know what you're after. Please search the issues first before creating a new one.

## GitHub
The GitHub repository can be [found here](https://github.com/ClydeDz/google-analytics-snippets-vscode).

## Release notes
For detailed release notes, please visit [the releases page on GitHub](https://github.com/ClydeDz/google-analytics-snippets-vscode/releases).

## Using Visual Studio?
You can also install [Google Analytics Snippet Pack for Visual Studio](https://marketplace.visualstudio.com/items?itemName=clydedsouza.GoogleAnalyticsSnippetPack) if you're using Visual Studio as your IDE.

## Credits
Google Analytics Snippets for VS Code (c) 2019 [Clyde D'Souza](https://clydedsouza.net/#/).