This Python Script will helps you to generate Urchin Tracking Module (UTM) parameters for tracking the incoming traffic.
- Download the UTM_GENERATOR.py script
- Open it with any Python IDE (Jupyter Notebook, Spyder,IDLE...).
- Enter all the Necessay details (Website Url, UTM source, Medium e.t.c.)
- Once it is done, the script will generate a UTM code, just copy it and Enjoy tracking. (If you want then you can also short the generated URL using any URL shortener(goo.gl, bit.ly etc.))
-
Use utm_source to identify a search engine, newsletter name, or other source. Example: google
-
Use utm_medium to identify a medium such as email or cost-per- click. Example: cpc
-
Used for keyword analysis. Use utm_campaign to identify a specific product promotion or strategic campaign. Example: utm_campaign=spring_sale
-
Used for paid search. Use utm_term to note the keywords for the ad. Example: running+shoes
-
Used for A/B testing and content-targeted ads. Use utm_content to differentiate ads or links that point to the same URL. Examples: logolink or textlink
- Campaign_source is mandatory field, it helps you to track the source of incoming traffic.
- Campaign_medium is not mandatory but it is highly recommended to not to left it empty as it helps to predict the medium from where you are getting the traffic eg. it can be posts, newsletters, emails e.t.c
- Remaining three fields "name,term,content" are not much important but again it completly depends upon your requirement, like if you want to filter the traffic as per name, term or content then you can fill up the values here