🏷️GTM Installations

Crunch works well if you use Google Tag Manager for your project. Follow the below steps to quickly get started with Crunch using GTM.

Step 1:

Create a new tag in your GTM console and paste this HTML in the tag. Make sure your tag triggers on β€œDOM Content Loaded”

Step 2:

Get the App_ID for your project to install Crunch scripts in your project.

You can find your Crunch's project ID as follows β€”

  1. During the new project creation in the script installation setup.

  2. In the project level settings within Crunch App.

  3. Reach out to your Crunch account manager to provide you with an ID

Step 3:

Add the following script to your code β€”

<script 
    src="https://storage.googleapis.com/crunch_tracking_script/crunchit.min.js"
    onload="init()"
    async
>
</script>
<script>
    function init() {
    try {
        window.letscrunch("YOUR_UNIQUE_APP_ID");
    } catch (error) {
        console.error("Failed to load Crunch", error);}}
</script>

Last updated