Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Inject Script for Tracking Product Conversions (from Unbounce)


Goneuphoric

Recommended Posts

Site URL: https://www.renovationsells.com/shop-design-boards/monroe-bath

Hello! Your help is much appreciated. 

I am using a tool called Unbounce to create landing pages for our digital products. You can view the draft version of a landing page here: http://unbouncepages.com/bathroom-design-boards/. We will run an ad campaign on Instagram/Facebook that drives users to the product landing page where they can learn about the product, click through to a product page on our Sqaurespace site, and purchase the download. To properly track these conversions, I need to inject a bit of script before the </body> tag on my final conversion pages. 

A few questions: 

1. Would the final conversion page be the product page? or the order confirmation page?

2. How do I add the script before the </body> tag on these pages? 

 

Here is the script I need to inject for tracking:

<script type="text/javascript">
  var _ubaq = _ubaq || [];
  _ubaq.push(['trackGoal', 'convert']);
   
  (function() {
  var ub_script = document.createElement('script');
  ub_script.type = 'text/javascript';
  ub_script.src =
  ('https:' == document.location.protocol ? 'https://' : 'http://') +
  'd3pkntwtp2ukl5.cloudfront.net/uba.js';
  var s = document.getElementsByTagName('script')[0];
  s.parentNode.insertBefore(ub_script, s);
  }) ();
  </script>

 

 

Edited by Goneuphoric
Link to post
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...