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
- After selecting a template and customising basics – position, height/width, message etc, go to advanced options -> Other Options
- 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));}
Related articles
Use Extra CSS to modify how Connecto notifications look
What it does Sometimes a particular template might not have all the things you might want to show in your notification, like a specific arrangement of elements, a different close button and any [...]
How to use ‘User List targeting’ in Connecto
What it does: Lets you target a notification to a uploaded list of users. These users have to be registered users with a unique id that is sent to Connecto as a custom variable. How to set up: 1. [...]
Add extra JS to augment Connecto notifications
What is does Lets you enhance notifications by putting JS in templates. Theme elements can be made to interact and adapt to your site and much more. How to set up Create a notification by [...]