Amazing Mago WordPress Plugin

Get started by activating the plugin and then head to the settings page!

Next, generate your API key

Finally, sync the settings with your Mago account

This will bring in all of your custom contact, gig/lead, and company fields.

All Merge Codes Are Available On Your Settings Page and Are Searchable

Add This To The End of The URL before using in Mago Email Templates

This will ensure your page can merge data from the gig/lead inside Mago when someone clicks the link in your email sent by Mago.

i.e. yoursite.com/yourpage/?targetId=[Event.Id]

?targetId=[Event.Id]

Dynamic Image Swap Codes

Merge image using a custom field for image URL with no default

<img src="[as what='CUSTOMIMAGEFIELD']"/>

Merge image using a custom field for image URL with default image URL

<img src="[as what='CUSTOMIMAGEFIELD' default='https://YOURSITE.COM/YOURIMAGE.JPG']"/>

Merge in contact photo (no default image)

<img src="[as what='Contact.photo']"/>

Merge in contact photo with default

<img src="[as what='Contact.photo' default='https://YOURSITE.COM/YOURIMAGE.JPG']"/>

Dynamic Video Swap Codes

requires a custom field in Mago for video ID

Vimeo

<iframe title="vimeo-player" src="https://player.vimeo.com/video/[as what='CUSTOMVIDEOFIELD']?h=bfb894c3d2" width="640" height="360" frameborder="0"  allowfullscreen></iframe>

Vimeo with default video

<iframe title="vimeo-player" src="https://player.vimeo.com/video/[as what='CUSTOMVIDEOFIELD' default='xxxxx']?h=bfb894c3d2" width="640" height="360" frameborder="0"  allowfullscreen></iframe>

YouTube

<iframe width="560" height="315" src="https://www.youtube.com/embed/\[as what='CUSTOMVIDEOFIELD' ]" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> </iframe>

YouTube with default video

<iframe width="560" height="315" src="https://www.youtube.com/embed/\[as what='CUSTOMVIDEOFIELD' default='xxxxx']" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen> </iframe>

Loom

<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/[as what='CUSTOMVIDEOFIELD']?sid=dd53ed24-a34a-4435-b6e5-d6d1a857e354" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>

Loom with default video

<div style="position: relative; padding-bottom: 56.25%; height: 0;"><iframe src="https://www.loom.com/embed/[as what='CUSTOMVIDEOFIELD' default='xxxxx']?sid=dd53ed24-a34a-4435-b6e5-d6d1a857e354" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>

Conditional Codes

for use in text or code modules

Switch Field example

[switch field="Event.custom1" a="$500" b="$600" c="$700" d="$800" e="$900"]

Switch Field example

[switch field="Event.custom10" boy="his" girl="her" multi="their"]

Block Code example

[block field="Event.custom11" value="123"]Content for 123[else] This optional else condition will show if the block field does not apply. [/else][/block]

Available Operators for Block Swap Codes (advanced)

eq – equals( the default )
* ne – not equals
* gt – greater than (more characters when it’s not a number)
* lt – less than
* ge – greater than or equal to
* le – less than or equal to
* one of – set value to a comma separated list without spaces “choice1,choice2,choice3”
* contains – value is within the custom field
* starts with – value is contained at the very beginning of the field
* ends with – value is contained at the very end of the field.

Advanced Block Code with Operator

[block field="Event.balanceDue" value="500" operator="le"]
Since your balance is less than $500, please consider using Venmo[else]Please pay the balance with a check at the event.[/else]
[/block]

Gig/Lead Status updates

Event.eventStatus is the field name. Use the values below to control display conditions based on gig status.
Inactive lead
https://mago.co/ns#InactiveLead
Active lead
https://mago.co/ns#ActiveLead
Upcoming Booked Gig
https://mago.co/ns#BookedGig
Past Booked Gig
https://mago.co/ns#PastGig

Contract & Payment Status updates

Use the values below to control display conditions based on contract & payment status.
Event.contractSent
true/false
Event.contractSigned
ture/false
Event.depositIsPaid
true/false
Event.balanceIsPaid
true/false

 

Amazing Mago WP Plugin

Copyright © 2025 Amazing Mago. All Rights Reserved.

Secret Link