Quantcast
Channel: Topliners: Message List
Viewing all articles
Browse latest Browse all 3418

Re: Adding Javascript to Landing Page Footer?

$
0
0

Hi, I've been looking for an answer to this issue as well. After trying different ways here is what worked for me:

 

  • Create a .js file and host it in your server. In this file you will be adding your tracking code inside a javascript call like this:
    $(document).ready(function() { $(".main").after('<script type="text/javascript">your tracking code</script>'); });
    This will add "your tracking code" after the div with the class "main"  (I'm not sure if all eloqua landing pages wrap the full content unde <div class="main"></div> make sure yours does this, if is a different class/id replace .main with your class or ID)
  • Open your landing page
  • Open the section "Open JS Editor" (this is located under tools)
  • Add your jquery.js core file (<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>) and the path of the .js file you created (<script src="//mywebsite.com/js/eloqua.js"></script>).
  • And you are done

 

I hope this works for you, and I hope Eloqua comes out with an easier way to do this. Good luck!


Viewing all articles
Browse latest Browse all 3418

Trending Articles