I'm trying to innstall a Hubspot tracking code on our pages, but I can't find how and where to do it. When I click the "HTML" button I don't get the whole source code. Can somebody please help...?
You'd probably want to do this in your Template(s) rather than the WYSIWYG - check Settings -> Templates. Typically there is one Master template that all the child templates inherit from, and you can add the code here.
What I usually do is creating a new property on my homepage-node in Umbraco. The property must be of the type: Textbox multiple. Inside of this textbox the customer/webmaster can copy/paste all the tracking codes that they want.
Then I'll create a XSLT-macro with a small piece of code:
Then I place the macro in my master-template the place where I want the tracking-code(s) to be rendered.
I think it's a good way of doing it, so that if a customer someday needs to insert a new tracking-code, they don't have to change the templates, but just insert the code in the tracking-textbox on the homepage.
Tacking code
I'm trying to innstall a Hubspot tracking code on our pages, but I can't find how and where to do it. When I click the "HTML" button I don't get the whole source code. Can somebody please help...?
You'd probably want to do this in your Template(s) rather than the WYSIWYG - check Settings -> Templates. Typically there is one Master template that all the child templates inherit from, and you can add the code here.
Thanks for the tip! Did'nt have access to the template at first, but now I do! :)
Hi Yvette
What I usually do is creating a new property on my homepage-node in Umbraco. The property must be of the type: Textbox multiple. Inside of this textbox the customer/webmaster can copy/paste all the tracking codes that they want.
Then I'll create a XSLT-macro with a small piece of code:
Then I place the macro in my master-template the place where I want the tracking-code(s) to be rendered.
I think it's a good way of doing it, so that if a customer someday needs to insert a new tracking-code, they don't have to change the templates, but just insert the code in the tracking-textbox on the homepage.
Just my 5 cents :)
/Kim A
is working on a reply...