vue-rewardful

1.0.1 • Public • Published

README

Introduction

Set up

  • Install the plugin as usual npm install vue-rewardful
  • Include the script in the pages needed
    import rewardful from "vue-rewardful";
  • Pass your rewardful ID to the plugin
    Vue.use(rewardful, {
      key: ######
    });

Javascript-only use

  • Adding this code will make the Rewardful Cookie available.
  • This will open up the ability to use Rewardful's functions.
  • The most simple scenario would be
    • User comes to your site through your campaign url https://www.domain.com?via=affiliate-name
    • Rewardful cookie is set
    • User signs up
    • Place this code in the page you consider the user as converted
      import rewardful from "vue-rewardful";
      Vue.use(rewardful, {
        key: ######
      });
      rewardful("convert", { email: "test@test.com" });
    • User is now a conversion.

Pass to server side

Will result in:

  <form action="/signup" method="post" data-rewardful="true">
  ...
  <!-- Inserted automatically by Rewardful: -->
  <input type="hidden" name="referral" value="####-#####-###">
  </form>
  • You can then capture the value and pass to your server or you can attach this to a Stripe form to handle with the Rewardful's Stripe integration

Who do I talk to?

This plugin was designed and is maintained by (Aquila Development)[https://www.useaquila.dev/]

Package Sidebar

Install

npm i vue-rewardful

Weekly Downloads

4

Version

1.0.1

License

ISC

Unpacked Size

3.84 kB

Total Files

3

Last publish

Collaborators

  • msegura