P
P
pilotus2018-05-03 12:31:11
Joomla
pilotus, 2018-05-03 12:31:11

How to add a code in the head for a split test to a separate joomla page?

I was going to conduct an experiment a / b test. You need to add code to the head of the page. Site on Joomla. Head, respectively, is registered in the template. And I need to place it on a specific page. How to be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Gruznykh, 2018-05-03
@pilotus

1) Stick in position for the module:<head>

<head>
<jdoc:include type="modules" name="head" style="none" />
</head>

2) Create a menu item for the page you need in the Menu Manager.
3) Create some such module in this head position and paste your code into it. Bind this module to the menu item created in step 2.

E
Eugene, 2018-06-01
@protasoveo

Good afternoon!
The most simple and modern:

  1. Add the Google Tag Manager code to all pages of the site;
  2. Create a "Page view" trigger with the constraint "Page URL equals your_page_url";
  3. Add a tag with the ab-test code and specify the trigger that you created earlier;
  4. Ready! The code will only work on one page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question