MM_Affiliate_Decision SmartTag

This tag is used to show or hide content based on affiliate information associated with the current visitor. For example, you can use it to only show a special offer to leads that come from a particular affiliate.

Attributes

affiliate (optional) - Takes a single affiliate ID or a SmartTag equation incorporating multiple affiliate IDs. You can also precede IDs with a '!' to check if the current visitor was not referred by that affiliate.

subaffiliate (optional) - Takes a single subaffiliate ID or a SmartTag equation incorporating multiple subaffiliate IDs. You can also precede the ID with a '!' to check if the current visitor was not referred by that subaffiliate.

Usage

If you use multiple attributes for a single decision, it results in an AND relationship. For example, if you write:

[MM_Affiliate_Decision affiliate='jsmith' subaffiliate='google']

This means, show this content if...

the affiliate equals jsmith
AND
the subaffiliate equals google

When using the [MM_Affiliate_Decision] tag, you must always include an opening and closing tag. The content between the opening and closing tags can be any valid HTML or JavaScript and it can also contain other MemberMouse SmartTags including other decision tags with the exception of the [MM_Affiliate_Decision] itself. The [MM_Affiliate_Decision] cannot be used within itself. Here are some valid examples:

[MM_Affiliate_Decision affiliate='aff_1']
Hi [MM_Member_Data name='firstName']!
This content is directed specifically toward visitors and members who were referred by affiliate 'aff_1'.
[/MM_Affiliate_Decision]

[MM_Affiliate_Decision affiliate='aff_2' subaffiliate='email|banner']
[MM_Member_Decision isMember='true']
You are currenly a member
[/MM_Member_Decision]
This content is directed specifically toward visitors and members who were referred by affiliate 'aff_2' and subaffiliate 'email' or 'banner'.
[/MM_Affiliate_Decision]

Feedback and Knowledge Base