Add referral id to URLs in JS
[MAILPOET-2182]
This commit is contained in:
committed by
M. Shull
parent
226265b20a
commit
67f60079a8
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
import addReferralId from 'referral_url_decorator.jsx';
|
||||
|
||||
class FreePlanAnnouncement extends React.Component {
|
||||
constructor(props) {
|
||||
@@ -32,7 +33,7 @@ class FreePlanAnnouncement extends React.Component {
|
||||
<p>{MailPoet.I18n.t('freePlanDescription')}</p>
|
||||
<a
|
||||
className="button-primary"
|
||||
href="https://www.mailpoet.com/free-plan/"
|
||||
href={addReferralId('https://www.mailpoet.com/free-plan/')}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
@@ -2,6 +2,7 @@ import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
import PropTypes from 'prop-types';
|
||||
import ReactStringReplace from 'react-string-replace';
|
||||
import addReferralId from 'referral_url_decorator.jsx';
|
||||
|
||||
const resumeMailerSending = () => {
|
||||
MailPoet.Ajax.post({
|
||||
@@ -115,7 +116,7 @@ const PHPMailerCheckSettingsNotice = () => (
|
||||
</p>
|
||||
<p>
|
||||
<a
|
||||
href="https://www.mailpoet.com/free-plan/?utm_source=plugin&utm_campaign=sending-error"
|
||||
href={addReferralId('https://www.mailpoet.com/free-plan/?utm_source=plugin&utm_campaign=sending-error')}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
@@ -7,6 +7,7 @@ import Marionette from 'backbone.marionette';
|
||||
import SuperModel from 'backbone.supermodel';
|
||||
import _ from 'underscore';
|
||||
import jQuery from 'jquery';
|
||||
import addReferralId from 'referral_url_decorator.jsx';
|
||||
|
||||
var Module = {};
|
||||
var SidebarView;
|
||||
@@ -351,7 +352,7 @@ Module.SidebarPreviewView = Marionette.View.extend({
|
||||
<p>${MailPoet.I18n.t('newsletterPreviewErrorUseSendingService')}</p>
|
||||
<p>
|
||||
<a
|
||||
href="https://www.mailpoet.com/free-plan/?utm_source=plugin&utm_campaign=sending-error"
|
||||
href=${addReferralId('https://www.mailpoet.com/free-plan/?utm_source=plugin&utm_campaign=sending-error')}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
import addReferralId from 'referral_url_decorator.jsx';
|
||||
|
||||
const PremiumBanner = () => {
|
||||
if (window.mailpoet_premium_active) {
|
||||
@@ -11,7 +12,7 @@ const PremiumBanner = () => {
|
||||
ctaButton = (
|
||||
<a
|
||||
className="button"
|
||||
href="https://www.mailpoet.com/free-plan/"
|
||||
href={addReferralId('https://www.mailpoet.com/free-plan/')}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
@@ -22,7 +23,7 @@ const PremiumBanner = () => {
|
||||
ctaButton = (
|
||||
<a
|
||||
className="button"
|
||||
href={`https://www.mailpoet.com/pricing/?subscribers=${window.mailpoet_subscribers_count}`}
|
||||
href={addReferralId(`https://www.mailpoet.com/pricing/?subscribers=${window.mailpoet_subscribers_count}`)}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
|
Reference in New Issue
Block a user