<img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=442498563201411&amp;ev=PageView&amp;noscript=1">

Connector for Articles: How to Create Subscriptions or Time Passes

Topics: Connector · Articles · Subscriptions · Time Passes
Experience Level: Intermediate
December 17, 2019 · 5 min read





You wouldn’t normally want to add a subscription option for a single article, but rather to the entire site, or to a part of the content you are serving. For the purposes of our video example, however, we created a 1 month subscription and a time pass for An Economist - the content category of our mock website.


First take a look at a short video outlining the key steps: https://youtu.be/-sLi5dNGiD0 


Now, let’s get started.


Step 1: Creating a Subscription

Go to the Connector interface and select ‘Subscriptions,’ then click on the plus button to create a new subscription. This will bring up a number of options to define what your subscription will look like.


Figure 1: Subscriptions Configuration Window


Let’s briefly review the different options and walk through the steps we took in our video example:


  • Title: This is how the subscription will be named. Since this will be displayed to the end user, it makes sense to give it a meaningful name, such as  “1 Month Subscription.

  • Description: Just like the title, the description will also be visible to the end user. With that in mind, you want to make sure you provide a descriptive name that is easy to understand, such as “Subscribe to An Economist for a Month!

  • Match Type: When we were setting up a single purchase, we talked about the Exact Path and ArticleID. For subscriptions, we also have the option for a “Path Prefix Match”, which matches all articles that have a certain path prefix. This is going to be particularly useful when you want to define which articles the subscription should apply to. In our case, given that we have three articles under the prefix ‘/connector-script/AnEconomist/’, we can select that path prefix and put it into the text box - for your own site, choose the path in which the relevant content is gathered.

  • Path/Paths/ArticleID: Much like with the Single Purchase, you will be defining the corresponding value here, based on which Match Type is selected. As mentioned above, we will have /connector-script/AnEconomist/ set as the value here.

  • Validity Period: As you might expect, we use this option to determine for how long the subscription will be valid - in our case it will be 1 Month.

  • Price: We set the price for the one month subscription, just as we did for the single purchase. Let’s say $4/4€ (400).

  • Template: We’re back to the Template Selector again! You can reuse the same one as for single purchase if the page structure is the same!


Figure 2: Setting the Price and Template


After clicking on ‘Save,’ given that each of the articles imports a connector script in their code, you should see a subscription overlay on all of them; and we should see it added in the single purchase overlay as an additional purchase option. After buying the subscription, the user will now get access to all three articles.


Figure 3: The Completed Subscription


Figure 4: The Subscription Option Added to the Overlay


Step 2: Creating a Time Pass

You can similarly add a Time Pass to your content by following almost the exact same steps as you did for a Subscription, only using the Time Pass category.

For the example in our video, we made it a bit more interesting - adding a time pass only for two of the articles referenced, not all of them. We did this in order to demonstrate how to use article paths, rather than defining a path prefix match.


Please refer again to the video to confirm how this is done!


Figure 5: Adding the Exact Paths for Multiple Articles


Figure 6: The Time Pass Option Added to the Overlay


You’re are all done! Congratulations on successfully adding subscriptions and time passes to your site! If you’re ready to learn more, we will next take a look at using in-page configuration and ArticleIDs.


Further Reading