Conversion Shortcode

Advanced conversion tracking for scenarios beyond URL-based goals

When to Use the Conversion Shortcode

The conversion shortcode gives you precise control over when and how conversions are counted. Place it inside a trigger version to fire a conversion only when a specific condition is met, or use it to track clicks and other actions that don’t result in a page visit.

The Shortcode

[ifso_conversion conversion='ID']

Replace ID with the conversion ID from the Conversions table in If-So → Analytics.

Shortcode Attributes

AttributeDescriptionExample
conversionThe ID of the conversion to fireconversion='5'
triggersComma-separated trigger IDs to include in attribution.triggers='101,204'
excludeComma-separated trigger IDs to exclude from attributionexclude='101'
do_once_perMinimum time between conversions for the same visitor, in secondsdo_once_per='86400'

Use Cases

Conditional Conversions

Place the conversion shortcode inside an If-So trigger version. The conversion fires only when that specific version is shown to the visitor — not on every page visit.

  1. Create a conversion goal in If-So → Analytics and note its ID.
  2. Create a new If-So Trigger.
  3. Set the condition for the version you want to track (e.g. UTM source = google).
  4. Paste the conversion shortcode as the version’s content:
  5. Place the trigger on the relevant page.

When the condition is met and the version is shown, the conversion is fired.

Tracking Clicks as Conversions

If-So’s URL-based conversion tracking counts page visits. To track a button or link click instead, use a query string workaround with the Dynamic Link condition.

Step 1: Add a query string to the button link

Modify each button’s URL to include a unique query string:

https://yoursite.com/page?ifso=btn1
https://yoursite.com/page?ifso=btn2

Both buttons point to the same page but with different query strings — this lets If-So identify which button was clicked.

Step 2: Create a trigger with a Dynamic Link condition

Create a new If-So Trigger with one version per button:

  • Version A — Condition: Dynamic Link → is → ?ifso=btn1 → Content:
[ifso_conversion conversion='ID']
  • Version B — Condition: Dynamic Link → is → ?ifso=btn2 → Content:
[ifso_conversion conversion='ID']

Step 3: Place the trigger on the destination page

Paste the trigger shortcode on the page the buttons point to.

When a visitor clicks Button 1, they land on the page with ?ifso=btn1 in the URL. The trigger detects the query string, shows Version A, and fires the conversion.

Didn’t find what you need?

Summer Sale!
Up to 40% Off. 30-day Money back guarantee.