Skip to main content

Context: I have this handlebar for an email snippet: 

 {{#ifLte counter 1}}{{#ifContainsStr service.primary.eligible "VAC"}}  {{#not service.primary.enrolled "VAC"}} {{#assign "counter"}}{{math counter '+' 1}}{{/assign}}

{ HTML content  for snippet 1 }

{{/not}} {{/ifContainsStr}} {{/ifLte}}

 

{{#ifLte counter 1}}{{#ifContainsStr service.primary.eligible "NSE"}}  {{#not service.primary.enrolled "NSE"}} {{#assign "counter"}}{{math counter '+' 1}}{{/assign}}

{ HTML content for snippet 2 }

{{/not}} {{/ifContainsStr}} {{/ifLte}}

Question: 

I am creating a webhook on Iterable that will catch the clicking events of these snippets and I am not able to pass the handlebar code onto the Webhook body as JSON….. 

Does anyone have any experience doing similar to this and help me how to create the webhook to catch the events?

 

 

Hi there,

It sounds like a journey webhook is likely going to be the best solution here. If you set up a journey that is triggered by a click event for a particular campaign that this snippet is called in, (you can filter by the specific URL or URLs that are rendered by your snippet code), you can then call a journey webhook within that journey to send that click event data to whatever endpoint you like. Since the click event is what triggered the journey, a simple webhook with no custom code should pass the information about the click event to your endpoint. Feel free to reach out to our support team for further troubleshooting/setup by emailing support@iterable.com , or creating a ticket from within the Iterable UI by clicking the question mark in the top-right corner, and then selecting “submit a ticket” from the dropdown.

 

Best,
Heather 


Reply