Jump to content

How to add code with the <head> tag only in certain pages?


Gabriel Torres

Recommended Posts

Hi guys,

I need to add a tracking tag within the <head> tag, but only in a few selected pages. We have Pages installed, and these pages belong to the same database, so I wonder if there is something we could edit somewhere that would apply this code only for that database.

Of course we can write a plugin to achieve what we need, but I am wondering if there is an out-of-the-box solution first.

Best regards,

Gabe.

Link to comment
Share on other sites

43 minutes ago, Gabriel Torres said:

Hi guys,

I need to add a tracking tag within the <head> tag, but only in a few selected pages. We have Pages installed, and these pages belong to the same database, so I wonder if there is something we could edit somewhere that would apply this code only for that database.

Of course we can write a plugin to achieve what we need, but I am wondering if there is an out-of-the-box solution first.

Best regards,

Gabe.

Make or add a custom template that includes that code. Swap the pages you want to track over to that template. You can copy the code from already-existing templates, make a new template, paste that code, then add your tracking code.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...