This script made free by The CPM* Community. A place for 6-8+ Figure Newsletter and Media publishers to network, exhange ideas and learn from each other.
SparkLoop 1 is a paid newsletter recommendation network that pays you to recommend other quality newsletters to your subscribers.
I built this script to help me maximize each recommendation impression automatically. The script rotates recommendations in your newsletter and keeps track of which ones your subscriber has joined so that they are not shown recommendations they have already subscribed to.
There's a quick one-time setup process needed to get running, but after that, the script mostly takes care of the rest.
To get started, you'll need to set up tags for each newsletter you plan to recommend. Users who click the SparkLoop Magic Links 1 will automatically be tagged with the corresponding newsletter they clicked on. We can safely assume the user is subscribed because Magic Links automatically does a 1-click subscribe to recommendations.
In our example code, we'll be recommending Biddyco, Creator Wizard, Why We Buy, and Stacked Marketer.
{% assign newsletter_tags = 'Subscriber_BiddyCo, Subscriber_CreatorWizard, Subscriber_WhyWeBuy, Subscriber_StackedMarketer' | split: ', ' %}
The tagging format I use is Subscriber_NewsletterName
; you are free to use what works for you.
Next, you will need to create a link trigger for each of your SparkLoop Magic Links 1. The link trigger adds the appropriate tag to each subscriber when they click the Magic Link. In the image below, the subscriber will be tagged with Subscriber_BiddyCo
when they click the Biddyco Magic link. The Monetization script uses this tag to know which links to remove from the recommendations.
It's optional, but I like to implement each newsletter ad as a ConvertKit Snippet 1. This allows for easy updating of the code in one spot and have it updated everywhere it's used.
Now that you have everything set up in ConvertKit 1, you can customize the rest of the code
{% case newsletters[i] %}
{% when 'Subscriber_BiddyCo' %}
{{ snippet.biddyco }}
{% when 'Subscriber_StackedMarketer' %}
{{ snippet.stacked-marketer }}
{% when 'Subscriber_Shopifreaks' %}
{{ snippet.shopifreaks }}
{% when 'Subscriber_CreatorWizard' %}
{{ snippet.creator-wizard }}
{% when 'Subscriber_WhyWeBuy' %}
{{ snippet.why-we-buy }}
{% endcase %}
We'll need a when
statement for each newsletter you are recommending via this method.
{% when 'Subscriber_BiddyCo' %}
is the name of the tag you set up for each newsletter and {{ snippet.biddyco }}
is the code to display the contents of the snippet you set up. If you choose not to use snippets, you can simply paste in the ad/recommendation you want to display.
The final modification to make is to define what to show as a default placeholder for situations where a subscriber ends up subscribing to all recommendations. I've implemented this as a snippet as well, but as with the other options, you can just paste in content into this spot too.
{% if newsletterLen == 0 %}
{% comment "Display alternate ad content if no newsletter is available" %}{% endcomment %}
{{ snippet.alternate-content }}
{% endif %}
The only line to change is {{ snippet.alternate-content }}
; however, if you choose to use the same snippet name as mine, you can leave this unchanged.
You could copy and paste this code into your email templates as is; however, I like to also set up all this code as a snippet as well. It gives you the benefit of an easy spot to update the recommendations block in one spot.
Depending on how you name your snippet, adding the recommendation block into your template is as simple as adding the following to your template:
{{ snippet.sparkloop }}