Banner for Code For Cj Affiliate Network
Installs the tracking code for cj.com Wordpress Tutorial
Noted That:
  • To install correctly this code-for-cj-affiliate-network.zip .
  • Fisrt Download the code-for-cj-affiliate-network.zip to your computer
  • Extract/Open code-for-cj-affiliate-network.zip to Your Computer.
  • Then, Find readme.txt file inside code-for-cj-affiliate-network.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " code-for-cj-affiliate-network.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Code For Cj Affiliate Network

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Code For Cj Affiliate Network

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Code For Cj Affiliate Network

Step-5 : Now, Browse " code-for-cj-affiliate-network.zip " Downloaded plugin from your computer, Where you downloaded " code-for-cj-affiliate-network.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Code For Cj Affiliate Network

Step-6 : Now, Click on " Active Plugin "

Activate Code For Cj Affiliate Network

Step-7 : Then, See left Side Menu. " Code For Cj Affiliate Network " folder is added on left Side Menu. Now, Click on " Code For Cj Affiliate Network " folder.

Noted that: If you do not see " Code For Cj Affiliate Network " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Code For Cj Affiliate Network Configurations and Settings or How to work " Code For Cj Affiliate Network " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Tracking Code for cj.com (on WooCommerce checkout) " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Tracking Code for cj.com (on WooCommerce checkout)
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

1) Add the plugin through the ‘Plugins’ menu in WordPress

2) When prompted, activate the plugin

3) Go to Settings > CJ Tracking Code

4) Enter in your account info

5) The tracking code will then be included on the thank you page of WooCommerce orders, and on successful Gravity Form submissions.
Support WooCommerce 3.0+ , and Gravity Forms 2.4+

Extending the Plugin

The following filter is available for extending the plugin


cj_settings

This filter allows you to conditionally determine what the CID, type, and tag ID should be. This is useful when you have want to use multiple tag IDs and types.

Basic Example:


add_filter('cj_settings', function($account_data, $submission_method, $order){ // make changes to $account_data here return $account_data;
}, 10, 3);

Example 2:


add_filter('cj_settings', function($settings, $submission_method, $order_or_form_data, $order_or_form_id){ // make changes to the settings here // Note: return false if you don't want to send any data to CJ for this transaction return $settings;
}, 10, 4);

The first parameter is an array containing all of the settings to filter.
More settings may be added later, but the array currently holds:

  • ‘tag_id’ – the tag id
  • ‘cid’ – the container id
  • ‘type’ – the type/Action ID
  • ‘notate_urls’ – Currently used for WooCommerce only. Determines if we should add a note containing the URL used in the iframe pixel.
  • ‘other_params’ – A query string (do not include the initial question mark) of additional items to submit to CJ. These will appear in the CJ dashboard.
  • ‘storage_mechanism’ – Either ‘woo_session’ or ‘cookies’. Both options work. There is normally no need to change this.

The second parameter will be either “woocommerce” or “gravity_forms” depending on which one initiated everything (more integrations will be added later as they’re requested).

Based on the above parameter the next 2 will either be the form data and form id or the order data and order id.

If you need me to add additional filters, or if you have any questions, shoot me an email at [email protected].


Name