Check $post->ID against multiple values

Question

i have the following snippet on the site which is working perfectly fine but sometimes I have multiple pages where I want to trigger the event snippet from google, my questions can I add multiple ids using comma?

this is the code I am using which is working fine.

<?php if( $post->ID == 13052) { ?>
<!-- Event snippet for thank-you page --><script>  gtag('event', 'conversion', {'send_to': 'AW-105871269/5v9gsts6dbdsJ-Kl'});</script>
<?php } ?>
0
, sub0 1 year 2020-07-14T10:10:58-05:00 0 Answers 61 views 0

Leave an answer

Browse
Browse