Also store page URL.
-
Could you also save the page on which the user entered the website through the UTM link? It would be helpful.
The code changes required:
Second last line in JS, add:
createCookie(“_deco_utmurl”, document.location.href, 60);PHP file, fetch the cookie and append it the following to the email:
$url = $_COOKIE[‘_deco_utmurl’];
$email_utm .= ‘<tr><td>URL</td><td>’. $url .'</td></tr>’;I am putting this up here so that a future update does not require me to monkey patch my code again and also someone could find it useful.
Thank you.
- The topic ‘Also store page URL.’ is closed to new replies.