Hello, I have a problem lately, maybe you also encountered something like this or you know how it can be solved
My problem is redirection of ads to adwords, using a redirection through my website and later to the advertiser's website (main link advertiser name destination link my website which redirects to an affiliate link) I noticed that adwords started blocking my account, the account gets the description "system cheating"
I used this redirection
<? Php
function safeRdir ($ url) {
return <<< HTML
<! DOCTYPE html>
<html lang = "en-PL">
<Head>
<! - Google Analytics ->
<Script>
(Function (s, s, o, g, r, a, m) {i [ 'GoogleAnalyticsObject'] = r; and [r] = and [r] || function () {
(i [r] .q = i [r] .q || []). push (arguments)}, i [r] .l = 1 * new Date (); a = s.createElement (o),
s.getElementsByTagName = m (o) [0]; a.async = 1; g = a.src; m.parentNode.insertBefore (a, m)
}) (Window, document, 'Script', 'https: //www.google-analytics.com/analytics.js','ga');
ga ('create', 'UA-16823232323-5', 'auto');
ga ('send', 'pageview', 'redirect');
</ Script>
<! - End Google Analytics ->
<meta charset = "UTF-8">
<Title> Redirect ... </ title>
<meta name = "viewport" content = "width = device-width" />
<meta name = "robots" content = "noindex, nofollow, none" />
<meta http-equiv = "refresh" content = "5; $ {url}">
<Script>
setTimeout (function () {
location.assign ( '$ url {}');
}, 1000);
document.addEventListener ('DOMContentLoaded', function () {
document.querySelector ('# link'). setAttribute ('href', '$ {url}')
});
</ Script>
</ Head>
<Body>
<Center>
<Big>
<a href="${url}"> If your browser doesn't redirect you automatically </a> <a
href = "" id = "link"> click here </a>
</ Big>
</ Center>
</ Body>
</ Html>
HTML;
}
$ tags = ['GCLID', 'gclid'];
foreach ($ tags as $ tag) {
if ($ _GET && isset ($ _ GET [$ tag]) &&! empty ($ _ GET [$ tag])) {
echo safeRdir ('https: // affiliate link page);
die ();
}
}
?>
Not much to do I’m afraid. GA doesnt allow redirects as far as I know.