Installing extensions for Magento 2 is a little more complex than with Magento 1.x and should be done by your developer. It involves having access to the command line to your website host, or development environment.
Currently we suggest downloading the extension directly from here:
You can also find the extension on the Marketplace, purchase it using your linked account, and then download it. The Marketplace page can be found here:
Unzip the contents of the extension to a temporary directory. Move, or upload the 'SmartAndTargeted' directory to the following location:
Log into your Admin area, then go to System / Tools / Cache Management. Select all cache types, choose "Disable" from the drop down list, and then Submit.
Even though you have copied the extension files to your Magento 2 installation they will not be seen until the system scans for them. To do this you will locally you will need to open your console, or on a remote machine you will need terminal access.
Once you're in the terminal go to the root of your Magento 2 installation. Then run the following command:
php bin/magento setup:upgrade
This will update the app/etc/config.php file with details of your new module.
This process may ask you to rerun Magento compile. If you are not in a development environment you can do this with the following command:
php bin/magento setup:di:compile
If you have memory errors runs as follows
php -d memory_limit=-1 bin/magento setup:di:compile
In your Admin area go to Stores / Settings / Configuration. You should now see a new option in the menu to the left, Fanplayr / Smart And Targeted.
You can now enter the Account Key given to you by your Fanplayr account manager. Make sure you click Save Config.
Log into your Admin area, then go to System / Tools / Cache Management. Select all cache types, choose "Enable" from the drop down list, and then Submit.
Once Fanplayr has been installed you should be able to see the
The specific variable you want to look at is as follows:
It should look like the following:
There is only one variable you need to check here, the
pageType which you will need to check on each page.
You should check a few category pages to make sure it is tracking correctly. The variables you need to look at:
Again, it's a good idea to check a few product pages:
The set up for this test is a little more complex. Please do the following:
The cart details are tracked on all pages, but we will check the cart page itself:
To test that order tracking is working please proceed making a test order using the same setup you have for the cart page testing above. That is, make sure you have multiple products and a discount applied.
If this variable is there everything should have tracked correctly. You can now log in to your Fanplayr account and see the order by going to:
Note that even though transactions should show up quite soon after they are made, tracking of sessions will take a while longer to show up in your analytics. Please double check that the details in Account / Transactions are correct.
Fanplayr has the ability to restrict specific offers to your users so they can only be used once presented by Fanplayr. For more details please see the implementation guide:
To test Session Offers please create a coupon with the prefix you have set in your Fanplayr Configuration.
%cat the end.
%cwith the coupon you just tried to use.
If the above is all as expected you are good to go! Please don't hesitate to contact us with any questions you may have.