Where do you place Webtrends code to track a landing page? | Community
Skip to main content
Aida_Kamber
Level 2
April 14, 2014
Solved

Where do you place Webtrends code to track a landing page?

  • April 14, 2014
  • 10 replies
  • 3321 views
We have placed an HTML snippet containing webtrends tracking code on a landing page and have added the javascript code to design studio as a file but webtrends.load.js keeps redirecting to our home page.

Has anyone successfully placed the webtrends tracking code on their Marketo landing pages? 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
Place this code in the template or custom HTML block on your landing page:

<script>
$jQ('input#mktFrmSubmit').attr('onMouseDown','value');
</script>

Replace the value with the code they provided.

10 replies

April 14, 2014
Are you supposed to host the Webtrends JS file on your own server? Wouldn't they host that for you and you simply point to it? Seems odd...
Aida_Kamber
Level 2
April 14, 2014
They asked that we add it to design studio which we did :/
April 14, 2014
Can you post a link to the landing page that's not working?
Aida_Kamber
Level 2
April 14, 2014
https://info.kcprofessional.com/GH_Forms_GH_General_Use_Thank_You_12042012.html
April 14, 2014
Hmm, referencing the file directly works for me. I would contact support for further troubleshooting.
Aida_Kamber
Level 2
April 14, 2014
Thanks for your help!
Aida_Kamber
Level 2
April 15, 2014
So, we have figured out that they were calling out webrends.min.js and we had is saved as webtrends.js 

Any idea on how/where to place the onmousedown event to the Submit button?

Thanks!

Accepted solution
April 15, 2014
Place this code in the template or custom HTML block on your landing page:

<script>
$jQ('input#mktFrmSubmit').attr('onMouseDown','value');
</script>

Replace the value with the code they provided.
Aida_Kamber
Level 2
April 15, 2014
You're the best Jason!
April 15, 2014
Glad to help!