logo

Setting third party callbacks/tracking on Connecto notifs

What it does

Allows you to set up a script that can be called whenever a notification is clicked/submitted. This could be a third party tracking script like Adwords/Google Analytics or maybe a script to trigger subsequent operation after a specific click/submit is done.

How to set up

  1. After selecting a template and customising basics – position, height/width, message etc, go to advanced options -> Other Options
  2. Look for ‘Callback after Click’ and place the script you want to run on callback. Do take note this script has be be placed in a JS function compatible with our website for e.g. a function you might be using on any native button click on the site

Example

Many of our clients like this one use conversion scripts to track connecto submits elsewhere. Can be done simply by placing a simple JS function in ‘Callback after Click’ field with the respective tracking script in it.

Please not that ‘Callback after Click’ should be Javascript function like

function() {console.log('Hello World');}

It runs on the page of your website so it can access any JS variable or function already present on the page.

If you would like to get the data from form submit. Its also available to you in this function

function(data) {console.log(JSON.stringify(data));}

Screen Shot 2016-06-06 at 12.46.39 am

2 found this helpful