To send an analytics event / advertising pixel, or any custom javascript code that will trigger a store click be sure that:

  1. The correct GTM ID is set in your Smart-Link (Advanced Settings)
  2. In GTM add this method with your custom code
window.FfmClickEventListener = function (store, cta, properties) {
// custom JS code here

You can also set an event listener on link preview button:

if (document.getElementById(‘play-button’)) {
   document.getElementById(‘play-button’).addEventListener(“click”,function(e) {
     // custom JS code here

That's it!

Did this answer your question?