The Digital Attribution script is a lightweight JavaScript tag that powers conversion tracking and web analytics. The Munchkin Tag should be incorporated as a standard component of all of your website's pages. By default, the tag will capture conversions by registering these events as they happen on your website, however, due to various implementations of forms across websites, there are instances where our tag will not properly capture the conversion or we may need to adjust the way the Terminus snippet functions. 

To Disable the XHR Sniffing of the Digital Attribution Script:

  1.  Edit the Digital Attribution script to have the line of code "enableSniff = false," between the declaration of the bfId and bfSession variables. The final result should look like the code example below. Note: the bfId value is unique to your snippet, so please do not edit that value. A placeholder is used below
    <!-- Digital Attribution Code --> 
    <script type="text/javascript">
    var bfId="{{data.webSnippetIdPlaceholder}}",
    enableSniff = false,
    bfSession = 0.041666666666666664;

    (function() {
    var script = document.createElement('script');
    script.type = 'text/javascript';
    script.async = true;
    script.src = ('https:' === document.location.protocol ? 'https://' : 'http://' ) + 'munchkin.brightfunnel.com/js/build/bf-munchkin.min.js?tstamp=' + new Date().getTime();
    var top = document.getElementsByTagName('script')[0];
    top.parentNode.insertBefore(script, top); })();
    </script>
    <!-- end Digital Attribution Code -->

To Manually Submit an Email Address to the Digital Attribution Script:

  1. Terminus can also collect form submissions through the use of a manual function
    terminusTracker.emailCollect('myuniqueformid', 'acustomer@email.com')
    Parameter 1 is a unique identifier for the form given by the developer. This parameter should be unique for the form that is being submitted. Terminus recommends using the corresponding campaign name or code for this parameter. 
    Parameter 2 is the email entered by the form user to be sent to our system.

    An example implementation of the function which would submit the same email every time the button is clicked:
    <button type="submit" form="form1" value="Submit" onclick="terminusTracker.emailCollect('myuniqueformid', 'acustomer@email.com')">Submit</button>

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.