All pages
Powered by GitBook
1 of 12

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Custom SDK Integration

Integrate GoAffPro with your custom store:

Create a GoAffPro merchant account: Signup Link

If you already have an account, you can login.

Here, click on Add app to store.

Now, select the custom SDK option.

Next, enter the store name, store URL, and click on Submit.

After this, click on Integration steps.

Here, add the general tracking code in the header section before the closing </head> tag.

This is usually pasted in the theme's layout file.

Now, add the conversion tracking code to the conversion page or the "thank you" page.

Please ensure that the goaffproOrder object in the conversion tracking code has the actual order data of the customer.

Finally, click on Get Started.

This will open up the setup wizard for the program.

You can also look into the advanced integration guide:

Link
Signup Page
Click on Add app to store
Select Custom SDK option
Enter store name and URL
Click on Integration Steps
Add general tracking code
Add conversion tracking code
Click on Get Started

SDK Settings

REST JSON

GoAffPro provides you with the option to allow the app to call functions on your API.

To call functions on your API, go to the SDK Settings section in the Settings tab of the GoAffPro admin panel.

Here, go to the REST JSON section.

Now, click on Edit JSON Spec.

You can edit the REST JSON Spec to call functions of your API.

Settings > SDK Settings
REST JSON
Click on Edit JSON Spec

Add Custom JavaScript

GoAffPro provides you with the option to add custom JavaScript to load along with the referral tracking script.

To add custom JavaScript, go to the SDK Settings section in the Settings tab of the GoAffPro admin panel.

Settings > SDK Settings

Here, go to the Custom Javascript section.

Custom Javascript

Now, click on Edit.

Click on Edit

You can accordingly add custom JavaScript code.

Thinkific Integration

To connect Thinkific order tracking with GoAffPro:

Open the setup wizard:

The setup wizard will open up automatically when you open the GoAffPro admin panel for the first time.

ThriveCart Integration

To integrate ThriveCart with GoAffPro SDK integration:

Open the setup wizard:

The setup wizard will open up automatically when you open the GoAffPro admin panel for the first time.

Subbly Integration

If your store checkout is on the Subbly platform, you can easily integrate it with GoAffPro by following the instructions below:

Open the setup wizard:

The setup wizard will open up automatically when you open the GoAffPro admin panel for the first time.

Here, select Thinkfic.
Select Thinkfic

This will open up the Thrive Cart integration steps.

Thrive Cart integration

In the Thinkific admin panel, go to the Settings > open the Code & analytics section.

Thinkific admin panel > Settings > Code & Analytics

Here, in the Site footer code section > Copy and paste the code (in step 4).

Site footer code > Copy & paste the code

Now, select the Order tracking code section > Copy and paste the code (in step 6).

Order tracking code > Copy & paste the code

You can also find these instructions from the Settings > Integrations > Thinkfic Conversion Tracking section.

https://app.goaffpro.com/wizard
Here, select Thrive Cart.
Select Thrive Cart

This will open up the Thrive Cart integration steps.

Thrive Cart integration

Add the following code in your store's header area:

Please make sure to replace the your-unique-store-public-key from the code, with the public key from your account (from the Settings > Advanced > Third Party Tracking section).

Add the code in your store header area

Finally, add the following code in your Success/Thank you page:

Copy & paste the code in your Success/Thank you page
https://app.goaffpro.com/wizard
<script type="text/javascript" src="https://api.goaffpro.com/loader.js?shop=your-unique-store-public-key"></script>

Here, select Subbly.

Select Subbly

This will open up the Subbly integration steps.

Subbly integration

In the Subbly admin panel > Go to the Dashboard (of the website builder) > Navigate to the Site Settings and paste the code (in Step 1) in the Code Injection section.

Subbly admin panel > Dashboard > Site Settings > Code Injection section > Paste the tracking code

After this, go to the Conversion tracking page > Paste the conversion tracking code (in Step 2).

Conversion tracking page > Paste the conversion tracking code

You can also find these instructions from the Settings > Integrations > Subbly Checkout section.

https://app.goaffpro.com/wizard

Upload Product List

GoAffPro provides you with the option to upload a list of your products.

To upload a list of your products, go to the SDK Settings section in the Settings tab of the GoAffPro admin panel.

Settings > SDK Settings

Here, go to the Product List section.

Product List

Now, click on Edit.

Click on Edit

This will open up the Product Manager section.

Product Manager

Now, click on Bulk upload.

Here, you can download the template file, to set up your product list.

After this, upload the file.

Finally, click on Add products.

The products will get uploaded. You can now set up commissions for them.

<script type="text/javascript">
var goaffproOrder = {
    id:_thrive_order.order.id,
    number:_thrive_order.order.invoice_id,
    total: _thrive_order.order.total/100,
    tax: _thrive_order.order.tax/100,
    shipping: _thrive_order.order.shipping,
    currency:_thrive_order.order.currency,
    customer: {
        first_name: _thrive_order.customer.name,
        email:_thrive_order.customer.email
    },
}
goaffproTrackConversion(goaffproOrder);
</script>
Click on Bulk upload
Download the template file & set up your product list
Upload the list
Click on Add products

Enable Secure Payload

GoAffPro provides you with the option to enable secure payloads for conversion callback.

To enable secure payload for conversion callback, go to the SDK Settings section in the Settings tab of the GoAffPro admin panel.

Settings > SDK Settings

Here, go to the Secure Payload section.

Secure Payload

Now, enable the toggle.

Enable the toggle

After this, you can copy the payload key to use it.

You also have the option to refresh the payload key.

CartX Integration

GoAffPro provides you with the option to integrate the CartX payment gateway.

To integrate the CartX payment gateway, embed the following code in the Body section of the Thank You page in the CartX app.

<script type="text/javascript">
(function () {
            let q = [];
            if(!window.Goaffpro){
                window.Goaffpro = function(){
                    q.push(arguments);
                }
            }
            var s = document.createElement('script');
            s.type = 'text/javascript';
            s.async = true;
            s.src = 'https://static.goaffpro.com/client_sdk.js';
            s.onload = ()=>q.forEach((item)=> Goaffpro.apply(null, item))
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        })();
        Goaffpro('init', 'my-storefront-token');
        Goaffpro('track-conversion', {
            id: order.id,
            number: order.name,
            total_price: order.total_price,
            subtotal_price: order.subtotal_price,
            total_discounts: order.total_discounts,
            email: order.email,
            line_items: order.order_items.map(function(item){
                return {
                    product_id: item.product_id,
                    variant_id: item.variant_id,
                    price: item.price,
                    quantity: item.quantity,
                    name: item.name,
                    total_discount: item.total_discount
                }
            })
        });
</script>

Replace the my-storefront-token with your store's public token.

To generate the storefront token, go to Settings > Advanced Settings tab > API/Access Token section.

E-Junkie Integration

To integrate E-Junkie with GoAffPro SDK integration:

Add the general tracking code of the thank you page in E-Junkie:

<script type="text/javascript" src="https://api.goaffpro.com/loader.js?shop=your-unique-store-public-key"></script>

Please make sure to replace the your-unique-store-public-key from the code, with the public key from your account (from the Settings > Advanced > Third Party Tracking section).

After this, add the following conversion tracking code (below the general tracking code):

<script type="text/javascript">
var goaffproOrder = {
    id:'[%txn_id%]', 
    number:'[%ej_txn_id%]', 
    total: '[%gross%]',
    subtotal: '[%total%]', 
    tax: '[%tax%]',
    shipping: '[%shipping%]',
    currency:'[%currency%]',
    customer: { 
        first_name:'[%first_name%]',
        last_name:'[%last_name%]',
        email:'[%payer_email%]'
    },
    status:"approved"
}

goaffproTrackConversion(goaffproOrder);
</script>

Shopbase Integration

If your store is on the Shopbase platform, you can easily integrate it with GoAffPro by following the instructions below:

Open the setup wizard: https://app.goaffpro.com/wizard

The setup wizard will open up automatically when you open the GoAffPro admin panel for the first time.

Here, select Shopbase.

Now, enable the toggle.

The Shopbase integration will be activated.

After this, click on Get Started to go through your program setup.

You can also do this from the Settings > Integrations > Shopbase.com Checkout > Enable the toggle from there.

Select Shobase
Enable the toggle
Integration will be activated
Click on Get Started