SOLVED

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

Go to solution
Aida_Kamber
Level 2

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

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? 
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

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

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.

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

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

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

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

They asked that we add it to design studio which we did 😕
Anonymous
Not applicable

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

Can you post a link to the landing page that's not working?
Aida_Kamber
Level 2

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

https://info.kcprofessional.com/GH_Forms_GH_General_Use_Thank_You_12042012.html
Anonymous
Not applicable

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

Hmm, referencing the file directly works for me. I would contact support for further troubleshooting.
Aida_Kamber
Level 2

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

Thanks for your help!
Aida_Kamber
Level 2

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

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!

Anonymous
Not applicable

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

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

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

You're the best Jason!