Create javascript snippet code for your Google Tag Manager by providing your Site Name, Site URL and Google Analytics Tracking code. This project creates Universal Analytics Tag so Tracking Code format must be like UA-xxxxxx-xx
##### Enable Google Tag Manager API [Enable Google Tag Manager API](https://console.developers.google.com/start/api?id=tagmanager&credential=client_key)
##### Make required changes in settings.py ```python # enable/disable sending javascript code snippet in email. SEND_CODE_SNIPPET_EMAIL = True
GOOGLE_DEVELOPER_SECRET_KEY = os.path.join('secrets', 'google_developer_secret.json')
TIME_ZONE_COUNTRY_ID = 'US' TIME_ZONE_ID = 'America/Los_Angeles'
GOOGLE_TAG_USAGE_CONTEXT = ['web']
<br/>
##### Switch to project root directory and Install dependencies from requirements.txt file
pip install -r requirements.txt
<br/>
##### What command do i need to execute?
python index.py --site_name MY_SITE_NAME --site_url MY_SITE_URL --tracking_id MY_ANALYTICS_TRACKING_CODE
<br/>
##### What do you get?
![Google Tag Manager Preview](http://i.imgur.com/nV4CFVl.png)
<br/>
##### Tested Environment
Python 2.7 Python 3.4 Google Tag Manager API Version 1 Ubuntu 14.04