Tracking Sharpspring Forms

Follow

If you have Sharpspring on your website, you'll recognise that it integrates in a very similar way to CANDDi by installing a javascript snippet into the headers across the site. 

Getting both CANDDi and Sharpspring to work simultaneously on your forms is possible, it just takes a little configuration at the back end. 

Follow these steps to get them both working. 

 

Step 1

You will have Sharpspring script placed on your site that looks something like the below.

<script type="text/javascript">
    var ss_form = {'account': 'your-account-id', 'formID': 'your-form-id'};
    ss_form.width = '100%';
    ss_form.height = '1000';
    ss_form.domain = 'your-subdomain.marketingautomation.services';
    // ss_form.hidden = {'Company': 'Anon'}; // Modify this for sending hidden variables, or overriding values
</script>
<script type="text/javascript" src="https://your-subdomain.marketingautomation.services/client/form.js?ver=1.1.1"></script>

 

We need to edit this script to include CANDDi's tracking variables, so the forms can read CANDDi tracking.  

We can do this by editing the bottom line of the first script section only.  

Adding what Sharpspring refers to as "hidden fields", which are mainly used by third parties (such as CANDDi) to transfer more information with the form submissions. 

See the amended script below as a guide for what you need to change. 

<script type="text/javascript">
    var ss_form = {'account': 'your-account-id', 'formID': 'your-form-id'};
    ss_form.width = '100%';
    ss_form.height = '1000';
    ss_form.domain = 'your-subdomain.marketingautomation.services';

    // WE HAVE CHANGED THE LINES BELOW TO ADD CANDDi TRACKING
if(window.canddi) { ss_form.hidden = { 'BId': window.canddi.getBId(), 'SId': window.canddi.getSId(), 'TId': window.canddi.getTId(),
'GNo': window.canddi.getGNo(true) };
} </script> <script type="text/javascript" src="https://your-subdomain.marketingautomation.services/client/form.js?ver=1.1.1"></script>

 

Step 2

The final step requires you to add CANDDi as a third party service within your Sharpspring Dashboard. 

Find the form within Sharpspring you wish to track with CANDDi and click "Edit Form"            Sharpspring_form.png

Next, find the "General" tab and set the Postback URL to:

https://s.canddi.io/sharpspring

 

 

     Ss_form2.png

 

*NOTE - You will have to carry out these steps for each form across the site you want CANDDi to track

 

If you have any questions or run into any issues, feel free to give us a call on 0161 414 1080

 

Have more questions? Submit a request

Comments