-
I need to insert a specific tracker for google add on a page that has the url "/contact". For now I am doing it in javascript like this: <script> if (window.location.href.includes("rdv")) { console.log("rdv"); gtag('event', 'conversion', {'send_to': 'AW-TRACKING HERE '}); } </script> |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Yeap, for example, you can do this via a post ID using the checkIf helper: https://getpublii.com/dev/checkif-helper/
|
Beta Was this translation helpful? Give feedback.
-
@hubyhuby - it is not your case, but it is also worth to know that in some cases the |
Beta Was this translation helpful? Give feedback.
Yeap, for example, you can do this via a post ID using the checkIf helper: https://getpublii.com/dev/checkif-helper/
{{#post}} {{#checkIf id '==' 10}} your script here... {{/checkIf}} {{/post}}