CloakLinks snippet for MODX

by | 1.0.3 | Download

Affiliate Link Cloaker snippet for MODX Evolution. Encode urls in base64 and redirect through a blocked page/folder

credits: http://ctrtard.com/affiliate-marketing/better-affiliate-link-cloaking-for-seo/

Install instructions

Create the redirect landing page

*I suggest Seo4Evo package to manage Robots index/follow and sitemap exclude in MODx Evolution

Create a Cloaked link (Example calls)

method 1: using a template variable

[[CloakLinks? &landing=`49` &textlink=`site preview` &LinkTv=`AffiliateLink`]]

method 2

[[CloakLinks? &landing=`49` &textlink=`site preview` &LinkWeb=`http://modx.com/`]]

Custom Url Parameter

method 1 + custom url parameter

[[CloakLinks? &landing=`49` &urlparam=`visit` &textlink=`site preview` &LinkTv=`AffiliateLink`]]

Landing page + custom url parameter

[[CloakLinksRedirect? &urlparam=`visit`]]

Parameters: