Ask a Question
Back to All

Can I use httacces RewriteRule with Landing Page Pixel for Google Ads?


On my lander I have links to /go/affoffer

I use .htaccess RewriteRule to redirect /go/offer to my affiliate link ONLY if traffic is from specific GEOs. I can to conditional redirects easy thanks to Cloudflare IP Geolocation - it is free and very stable solution.

RewriteCond %{HTTP:CF-IPCountry} ^US$
RewriteRule ^go/affoffer$ https:// my custom domain with all params for affilite offer [QSA,R=302,L]

This works for me for a long time with no issues.

Now I want to add Landing Page Pixel to track Google Ads.

Can you help to set up this?