I’m new to Matomo, I’ve created a Custom HTML tag and it’s working. I’m using it to control the client’s ads tags. However the Position field (Define the position of where the HTML should be inserted into your website.) only has 4 predefined positions:
Head Start
Head End
Body Start
Body End
Is there a way to pick where exactly in the Body section to insert the tag? similar to the Google One Tag, which has a page preview that you can use to know where exactly the tag should be placed.
As the Custom HTML tag is mostly intended for adding a <script> Tag there should never be the need to place anything somewhere else.
If you need to modify the content of the page (e.g. add a <div> somewhere in the middle), you can simply write a <script> tag at the end of the body that includes Javascript that creates this div at any location you need.
Thank you for the fast reply! and yes this is exactly what we are looking for, for this Ad script tag to be replaced with a <div> for example at a certain place inside the body.
To be honest I’m not much into technicalities I will try to contact the technical team we work with regarding this, is there an example/tutorial/document to follow?