Mutiny allows you to track conversion events using custom javascript. This article will walk you through the steps needed to access your custom event code.
Accessing your event code
You can copy the code needed to track conversions inside the Mutiny app.
- Navigate to https://app.mutinyhq.com/conversions or click on the "Events" tab in the Mutiny app.
- Click on "+ New Conversion" in the top right.
- Click the "Track Event" card.
- From here, you'll need to copy one of the two code snippets you see on this page. Most of the time, you'll want the first snippet. If you're unsure, reach out to support@mutinyhq.com.
- If the Mutiny client code is already installed on the page where you want to track conversions, copy the code at the top of this screen, pictured here.
- If the Mutiny client code is not installed on the page where you want to track conversions, you'll need to use the code at the bottom of the screen, pictured here:
- Copy the code by clicking the "Copy code" button. By default, the conversion code you copied has a name of "demo-form". Depending on what conversion you want to track, you can update the name parameter in the code to whatever you'd like. For example, tracking a sign-up may look like this:
<script>
window.mutiny.client.trackConversion({ name: 'sign-up' })
</script> - Once you've copied this code, you'll want to place it on your website and ensure there is logic that triggers it whenever a conversion takes place. For example, if you're looking to track a form fill, you'll want this script to fire whenever the form is submitted.
Next steps
You may want to install this code using Google Tag Manager. For more information on that, click here.
Once you've set up your event, head on over here for more information on viewing your events.
Comments
0 comments
Please sign in to leave a comment.