URGENT | How to add custom code to a CTA?

@Aureldj95 - you can do this in basically two ways since you don’t have a thank you page and are submitting via AJAX

I like the second solution b/c it ensures that the conversion event is only fired when the form is successfully submitted, whereas the first solution only fires when the button is clicked. Either way it’s going to require a bit of custom code, although the onClick event is much simpler.

Basically when either event occurs you want to fire the LinkedIn event using the code provided, it should look something like this:

window.lintrk('track', { conversion_id: 2343434 });
1 Like