-
AuthorPosts
-
January 5, 2017 at 5:08 am #1317169
Hi, the below is what twitter is telling me to do, how would i achieve that on the website.
the site has well over 100 pages on it and uses cornerstone for all.Install your website tag
If you are the person who will be installing the website tag, download the code snippet and place it at the bottom of all pages on your website before the </body> HTML tag. Visit the website tag help and troubleshooting page for help.
Use tracking code to monitor campaign ROI
With conversion tracking you can also pass back conversion metrics like order quantity and sale amount. Learn how to track advanced metrics.
Download a txt file with this code snippet<!– Twitter universal website tag code –>
<script>
!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);
},s.version=’1.1′,s.queue=[],u=t.createElement(n),u.async=!0,u.src=’//static.ads-twitter.com/uwt.js’,
a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,’script’);
// Insert Twitter Pixel ID and Standard Event data below
twq(‘init’,’nw1sn’);
twq(‘track’,’PageView’);
</script>
<!– End Twitter universal website tag code –>Make sure your privacy policy is up to date
Make sure your privacy policy is up to date. Twitter’s policy requires that your website provide legally sufficient legal notice about how you are using third parties to collect website traffic data.That’s it!
Once your code is installed, come back to Twitter Ads to create specific conversion events that you want to track. If you like, you can create a conversion event now that will start tracking once your code is installed.
Return to conversion trackingJanuary 5, 2017 at 8:02 am #1317318Hi there,
Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
Then add the following code into your child theme’s functions.php file.
add_action('wp_footer','my_custom_twitter_code'); function my_custom_twitter_code() { ?> <!-- Replace this line with your JavaScript Code --> <?php }
Now you can replace the following line with your JavaScript code provided by twitter.
<!-- Replace this line with your JavaScript Code -->
Hope that helps.
-
AuthorPosts