Giter Site home page Giter Site logo

sparkloop's Introduction

SparkLoop Magic Link Monetization Script

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.

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

Footnotes

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

sparkloop's People

Contributors

tracking202 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.