D
D
Dmitry Prozorov2014-04-22 22:47:11
Google
Dmitry Prozorov, 2014-04-22 22:47:11

How to change a page depending on the UTM tags of this page?

The site page is accessed by links of the form:

http://site.name/index.html?utm_campaign=first
http://site.name/index.html?utm_campaign=second

How to output to <h1></h1>text depending on the UTM tag?
<h1>First</h1>
<h1>Second</h1>

Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VeMax, 2014-04-22
@VeMax

In your case, utm_campaign is a GET variable, read here www.php.net/manual/ru/reserved.variables.get.php
The algorithm is simple:
1. Check that it is in the request.
2. Depending on the value, set the title.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question