Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
pequeno Posted May 18, 2017 Posted May 18, 2017 Hello, I need insert code, the instructions are: Quote The code must be placed before closing </body> tag. What is the best way to insert that code?
pequeno Posted May 18, 2017 Author Posted May 18, 2017 Thank you @Edward Shephard I think that For this simple thing it´s no necessary to use the developer mode. I thought I could create a template custom.html in the acp (same as when we create custom.css) but I do not know how.
newbie LAC Posted May 18, 2017 Posted May 18, 2017 Hello, <body> tag located in globalTemplate template You can also use the setting "Custom tracking code"
pequeno Posted May 18, 2017 Author Posted May 18, 2017 8 minutes ago, newbie LAC said: You can also use the setting "Custom tracking code" I only find "Google Analytics Tracking Code". Can I put the code after Analytics Code?
BN_IT_Support Posted May 18, 2017 Posted May 18, 2017 A custom template wouldn't help you much because unless you then use a hook to add the template you would still have to manually edit the global template each time you update the site. Newbie's idea sounds good but I've never tried it.
newbie LAC Posted May 18, 2017 Posted May 18, 2017 5 minutes ago, pequeno said: I only find "Google Analytics Tracking Code". Can I put the code after Analytics Code? Click on Other for "Analytics provider".
pequeno Posted May 18, 2017 Author Posted May 18, 2017 2 minutes ago, Edward Shephard said: Newbie's idea sounds good but I've never tried it Yes, I tested it but my question is If when I save the custom code the system keep the Analytics code.
BN_IT_Support Posted May 18, 2017 Posted May 18, 2017 Don't know, I would try it and see. If you are inserting javascript then you should be able to see it by looking at the final page source in your browser.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.