Magento
📋Before You Implement
- Have your CJ-specific IDs ready before you begin: Enterprise ID, Action ID, and Tag ID. These are provided by your CJ Client Integration Engineering (CIE) team.
- Ensure you have admin-level access to your Shopify store before starting.
- Your unique tracking script must be copied directly from the CJ Network App within your Shopify Admin — do not use example code from screenshots.
- CJ cannot provide legal guidance on privacy compliance. Consult your legal team for jurisdiction-specific requirements before configuring privacy settings.
Step 1: Access Magento Marketplace
1
Navigate to Magento Marketplace.
2
Log in to your Marketplace account.
3
Search for "CJ Affiliate" in the search bar.
4
Select the appropriate edition for your store version.
5
Click Add to Cart and complete the purchase.
Step 2: Download the Extension
1
After purchase confirmation, click Download.
2
Save the extension file to your local machine.
Step 3: Create Directory Structure
Create the following folder structure in your Magento installation:
# Navigate to your Magento installation directory
cd /path/to/magento
# Create directory structure
mkdir -p app/code/CjPublicis/UniversalTagStep 4: Extract and Install Files
1
Extract the downloaded zip file contents.
2
Copy all files to:
<Magento_Installation_Folder>/app/code/CjPublicis/UniversalTagStep 5: Execute Installation Commands
Run these commands in your Magento root directory:
# Upgrade Magento setup
bin/magento setup:upgrade
# Clear cache
bin/magento cache:flush
# Restart your serverStep 6: Verify Installation
1
Log in to your Magento Admin panel.
2
Navigate to System → Web Setup Wizard → Module Manager.
3
Confirm the CJ Affiliate module appears in the list.
Configuration
Access Configuration Settings
- Log in to your Magento 2.x admin panel
- Navigate to Stores → Configuration
- Locate and click CJ UNIVERSAL TAG in the settings list
Configure Tracking Parameters
Your CJ Client Integration Engineer will provide your account's Enterprise ID, Action ID, and Tag ID.
Never share your Enterprise ID, Action ID, or Tag ID publicly. These values are unique to your account and should be kept confidential.
Customer Tracking Settings
Choose whether to track:
- New Customers: First-time purchasers
- Existing Customers: Returning customers
Note: Customer status is determined by the email address entered at checkout.
Save Configuration
- Enter the provided tracking parameters
- Select your customer tracking preferences
- Click Save Config at the top of the page
- Optionally configure specific website or store views by changing the Scope
Uninstalling The Extension
1
Remove Files — Delete the extension directory:
rm -rf <Magento_Installation_Folder>/app/code/CjPublicis2
Clean Database — Execute these SQL statements in your database:
DELETE FROM core_config_data WHERE path='universaltag/general/enterprise_id';
DELETE FROM core_config_data WHERE path='universaltag/general/action_id';
DELETE FROM core_config_data WHERE path='universaltag/general/tag_id';
DELETE FROM core_config_data WHERE path='universaltag/general/customer_status';⚠️ Warning: Back up your database before executing SQL statements. These changes cannot be undone.3
Finalize Removal — Run Magento's setup upgrade and restart your server:
bin/magento setup:upgrade
# Restart your serverNeed help?
Submit a support ticket for account-specific support.
Updated 11 days ago
