I have a campaign that works great direct linked and I want to drop a retargeting cookie from sitescout in a php or metarefresh redirect.
This has been touched on in these threads:
http://stmforum.com/forum/showthread...ht=retargeting
http://stmforum.com/forum/showthread...-Forget-to-Use
So, I need to do two things:
1- Drop the cookie and redirect to the offer after a short delay (1 second? More? Less?).
2- pass my keywords through to prosper.
I've sort of found code to do #1 with a metarefresh and php code that definitely does #2. Can somebody who has experience doing this post the code that worked best for them that does both? I'd be forever in your debt.
Thanks in advance.
Not knowing what the offer is, it it something you could serve in an iframe? That would be the best way as you could fire any pixels, cookies, or javascript you need without a redirect and the offer would load simultaneously.
The only downside is the URL will not reflect the offers' URL, which in some cases will effect conversions pretty badly.
You want to avoid any type of delayed-redirects almost across the board, but especially with direct linking from ads.
Someone else on another forum suggested an iframe. I'll look into it but I'm 99% sure it's not an option for the offers I'm promoting.
I have a working solution with a one second meta refresh and a little php. No noticeable affect on click loss or CVR. I tested another method that had no delay and it resulted in no noticeable click loss but my CVR tanked (not sure why). Both versions dropped the cookie just fine.
Here's the code for both:
Metarefresh:
<!DOCTYPE html>
<html lang="en">
<head>
<?PHP $c1 = urlencode($_GET['c1']); ?>
<meta charset="utf-8"/>
<meta name="robots" content="noindex,nofollow"/>
<meta http-equiv="refresh" content="1; url=<?PHP echo "http://xxxxxxxx.info/tracking202/redirect/dl.php?t202id=xxxxx&t202kw=" .$c1; ?>" />
<title>xxxxxxxxxxx</title>
</head>
<body>
<script type="text/javascript" src="http://pixel.sitescout.com/ap/xxxxxxxxxxxxxxxx"></script>
</body>
</html>
No Metarefresh:
<!DOCTYPE html>
<html lang="en">
<head>
<?PHP $c1 = urlencode($_GET['c1']); ?>
<title>xxxxxxxxxxxx</title>
</head>
<body>
<script type="text/javascript" src="http://pixel.sitescout.com/ap/xxxxxxxxxxxxxxxxxx"></script>
<script type="text/javascript">window.location = "<?PHP echo "http://xxxxxxxxx.info/tracking202/redirect/dl.php?t202id=xxxxx&t202kw=" .$c1; ?>"</script>
</body>
</html>
Just noticed this is missing from header of the version with no metarefresh.
<meta charset="utf-8"/>
<meta name="robots" content="noindex,nofollow"/>
Could that have caused the CVR drop in any way at all?