<commit_before># ga-tracking.
Track custom events and decorate custom links. You need to understand how to create tags on Google Tag Manager or have someone to do that for you, this is a tool to help you simplify your custom events and cross domain tracking. 

# How to use it?
you need to make sure you have done the following:

1. you must have set up the ```dataLayer``` above your container snippet (step 2).

2. you added already Google Tag Manager snippet before ```</body>```.
  
Don't know how to set up the steps above, [here](https://developers.google.com/tag-manager/quickstart "Quick Start Guide") is the guide.

# Track Custom Events.
* add the ga-tracking.js file to the footer.
* on your callback function, see the example below to push a custom event.
* ```gaTracker.event(event_name, event_category, event_type, event_label, event_value)```.
* Where ```event_name, event_category, event_type, event_label``` the Type of the values should be String, and ```event_value``` must be a Number.

# Cross Domain Tracking.
Use this only if you need to decorate custom Links.
```gaTracker.decorateLink(url)```, returns a decorated URL.<commit_msg>Cleaned up README.md<commit_after># ga-tracking
This is a tool to help you simplify your custom events and cross domain tracking with Google Tag Manager. You should understand how to create tags with Google Tag Manager or have someone to do that for you.

# How to use it?
You need to make sure you have done the following:

1. Set up the ```dataLayer``` above your container snippet (step 2).

2. Add Google Tag Manager snippet before ```</body>```.
  
Check the [official guide](https://developers.google.com/tag-manager/quickstart "Quick Start Guide") if you need help with either step.

# Track Custom Events
* Add the ga-tracking.js file to the footer.
* On your callback function, see the example below to push a custom event.
* ```gaTracker.event(event_name, event_category, event_type, event_label, event_value)```.
* Where ```event_name, event_category, event_type, event_label``` the Type of the values should be String, and ```event_value``` must be a Number.

# Cross Domain Tracking
```gaTracker.decorateLink(url)```, returns a decorated URL.

Use this only if you need to decorate custom Links.
{'fraction_non_alphanumeric': 0.09147149801148917, 'fraction_numerical': 0.0026513477684489617, 'mean_word_length': 4.603960396039604, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4381669', 'n_tokens_mistral': 634, 'n_tokens_neox': 614, 'n_words': 316}