Skip to content

tracking202/sparkloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkLoop Magic Link Monetization Script

This script made free by CPM*.

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.

Installation

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.

Create Link Triggers

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.

Create Ad Snippets

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.

Customize The Monetization Script

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.

Final Setup

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 because 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 }}

Footnotes

  1. Links to ConvertKit and SparkLoop contain affiliate links 2 3 4 5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages