How to Install Reaktion Magento2 Extension: Full Setup Guide

Modified on Fri, 24 Oct at 8:34 AM

This guide serves the purpose of showing you / your development team how to install Reaktion's Magento2 extension. The extension servers the purpose of inserting a global tracking script and checkout tracking script into your store.

Note: You can click the images below to view them in higher resolutions. 

Step 1: Tracking plugin installation

  1. Download Reaktion Magento2 plugin:  https://advertiser.reaktion.com/app/shared/integrations/provider/magento2/plugin-modal/assets/reaktion-magento2-plugin-v1.4.zip

  2. Decompress the contents of the “reaktion-magento-plugin-v1.0.zip” file.

  3. Connect to the Magento2 server using any FTP client (FileZilla, etc).

  4. Create the following directory under the Magento2 root directory: app/code/Reaktion/Tracking.

  5. Upload the contents of the “reaktion-magento-plugin-v1.0.zip” file into the app/code/Reaktion/Tracking directory.

  6. Connect to the Magento2 server using any SSH client (Putty, etc).

  7. Execute the following commands:

        php bin/magento setup:upgrade

        php bin/magento setup:di:compile

        php bin/magento setup:static-content:deploy -f


Please also add  *.reaktion.com entry into connect-src and script-src Content Security Policy sections. 


Reference: Magento support: Content Security Policies - Add a domain to whitelist



In case the the pending task "Insert checkout tracking script" still shows up in Reaktion Task Manager after installing the plugin, please refer to this guide.




Step 2: Access token 


To use "access token" auth in Magento2, you should set the following in Magento2:


Stores > Configuration > Services > OAuth > Consumer Settings > Allow OAuth Access Tokens to be used as standalone Bearer tokens



In the left menu bar, click the “System” menu entry and then the “Integrations” link.




Step 3: Add New Integration
Click the “Add New Integration” button. (image is clickable for larger preview)


Step 4: API Setup
Input “Reaktion.com integration” into the Name field and navigate to the “API” section of the settings. (image is clickable for larger preview)



Step 5: Permissions

Check:

  • Sales
  • Catalog
  • Customers
  • Stores -> Settings -> All Stores
  • Stores -> Settings -> Configuration -> Reaktion Tracking
  • Stores -> Attributes -> Product
  • Stores -> Attributes -> Attribute Set


and then click on the “Save” button.


Important: Make sure all permissions are given; otherwise, the integration will fail when trying to connect your Magento 2 store to Reaktion. (image is clickable for larger preview)





Step 6: Activation
Click the “Activate” link next to the newly created  “Reaktion.com" integration. 



Step 7:
Click the “Allow” button. (image is clickable for larger preview)



Step 8:
Copy the “Access Token” and then click the “Done” button.




Step 9:
You can always see the access token by clicking the “Edit” icon next to the “Reaktion.com" integration.




Do you use an Apache web server to host your Magento2 store? 

If yes, please make sure that the Authorization request header support is configured correctly

https://magento.stackexchange.com/a/332001


Note: If you are working with a headless Magento2 setup, please reach out to support@reaktion.com to discuss further steps. 




Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article