Horje
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:

1. First Download " code-for-cj-affiliate-network.zip " Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Tracking Code for cj.com (on WooCommerce checkout) " folder is added on left sidemenu. Now, Click on " Tracking Code for cj.com (on WooCommerce checkout) " folder.

   Noted that: If you do not see " Tracking Code for cj.com (on WooCommerce checkout) " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Tracking Code for cj.com (on WooCommerce checkout) Configurtions and Settings or How to work " Tracking Code for cj.com (on WooCommerce checkout) " 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].


installs , tracking , code , cjcom , tutorial ,

Name

Read Article
https://develop.horje.com/learn/1434/reference