andkit
andkit
Offline
0
Hi there,

I just purchased AffiliateTracker+ContentStatistics (extended Pro version for Joomla 3.x). I am using Virtuemart and would like to integrate the ContentStatistics with Virtuemart. I have just installed and enabled the plugin and started seeing some tracking, which is good.

For product reviews, I am using Jlex Review extension that integrates with Virtuemart. However, it seems that this is not compatible with ContentStatistics.

Questions:
- Do I need to install an additional plugin for this? I do not find it on the plugin list, or is it not available?
- If for some reason it is not available or not supported, could you please point me towards the code/script file that tracks the Virtuemart Review, to allow possible integration. Any insights and information you could share regarding the structure of the script/plugin will also be much appreciated. Particularly, the part in the code that triggers the Review tracking.

Thank you very much.
Responses (3)
  • Accepted Answer

    Wednesday, January 02 2019, 10:05 AM - #Permalink
    0
    we don't have a plugin for Jlex Review

    All code for VM tracking is found inside the VM - AT plugin. if you want to make some code hacking, that's the file you need to look into.
    The reply is currently minimized Show
  • Accepted Answer

    andkit
    andkit
    Offline
    Friday, January 04 2019, 03:09 PM - #Permalink
    0
    Hi Germinal,

    Thanks for the reply. I see there are multiple functions in com_virtuemart.php inside contentstatistics plugin folder to record the statistics (e.g., product review, product view, etc.). Question: How and when do these functions get called? Is it called by Virtuemart when specific actions are taken (e.g., when a review is submitted, then only the record review statistic function is called; or; do all functions get called multiple times? Or some other method?). Could you please give some information on what triggers these functions to record the statistics?

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 08 2019, 02:53 PM - #Permalink
    0
    this plugin is triggered in every VM action.

    there is a lot of code in it.. if, for example, looking at vars, we see that it's a "page view", we record it.

    again, this is triggered always. It's all about adding new code to register what you want. registerStatistic() function is key.

    But logically you have to be proficient at coding to do it :)
    The reply is currently minimized Show
Your Reply