Last active
August 29, 2015 14:11
-
-
Save A5hleyRich/235285d177892ac6d147 to your computer and use it in GitHub Desktop.
Post: WordPress Outbound Link Tracking using Google Analytics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Affiliate Links | |
location /out/digitalocean { | |
add_header X-Robots-Tag: "noindex, nofollow"; | |
return 302 https://www.digitalocean.com/?refcode=3196717b4908; | |
} | |
location /out/studiopress { | |
add_header X-Robots-Tag: "noindex, nofollow"; | |
return 302 http://www.shareasale.com/r.cfm?b=241369&u=904813&m=28169&urllink=&afftra$ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nano /etc/nginx/sites-available/ashleyrich.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo nginx -s reload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="/out/digitalocean/" title="DigitalOcean Affiliate Link" rel="nofollow">DigitalOcean</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onclick="_gaq.push(['_trackEvent', 'Outbounds', 'Click', 'DigitalOcean']);" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="/out/digitalocean/" title="DigitalOcean Affiliate Link" onclick="_gaq.push(['_trackEvent', 'Outbounds', 'Click', 'DigitalOcean']);" rel="nofollow">DigitalOcean</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment