API code not working Issue

0
Another problem that I detected is that the API code is not working. For example, I tried to add the code in routemysite/com_affiliatetracker/helpers/helpers.php for the easysocial component in order for all the actions from the activity streams, profiles, groups and pages to be generated with the id of the user. Additionally, I tried a different route routemysite/com_easysocial/easysocial.php and it still didn't work. Where and how do I exactly have to place this code in order for it to work because from the documentation from the link below, i didn't understand anything as what's written there isn't clear.

https://www.joomlathat.com/documentation/affiliate-tracker/using-the-api-to-create-conversions
Responses (5)
  • Accepted Answer

    Thursday, March 07 2019, 10:54 AM - #Permalink
    0
    this code is supposed to be used to track specific actions on components.

    you need to know coding to use it.

    for example, if there's a particular easysocial action you want to track, you would need to know where, in their PHP files, does this action take place, and put the code there.

    if the user performing the action accessed the website using an affiliate link, then this action will be recorded as part of this affiliate network actions
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 07 2019, 11:23 AM - #Permalink
    0
    Thank you for your response but I would be really happy if you could help me by giving me an example of how and where to put this code for a component. For example for a sharing component which is called AMPZ Social Share. It's not as complicated as EasySocial, but I don't know where to put the code. I would be very great-full if you can accord me 5 minutes and help me place in the right place to make work. I will conduct my self on this example for other components in the future. If you are not familiar with the structure of AMPZ Social Share, I can send you the component.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 07 2019, 11:26 AM - #Permalink
    0
    hello

    it's not that easy, I don't know how this component works, I can't just "tell you" how to do it.
    it's the same as doing it myself, and for that, we have to charge a fee

    This code is intended for developers. If you're not a developer, you can hire our custom coding team to develop this for you.

    I will have to go into the code, see how it's built, to find out the place where the API code can be placed, to track the actions you need.

    But again, I need to know exactly WHAT you want to track.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 07 2019, 11:43 AM - #Permalink
    0
    I am a starting developer and I found where to place the code but the document isn't clearly written. Please give me an step by step example of what values I have t change from the code in order for it work because my team and I we put it in the component and it's not working. But in terms of custom work we will sure contact you because we have a lot of work in order to develop it to our needs and necessities but for the beginning I want to see how it works from the packages so I can understand its structure. Later, I will create a list of task with the concrete scenarios of what you will have to develop after which you will give us a quota and the mode of working. Additionally, in order to facilitate this work and for you to better understand what we want from you in terms of custom work, please provide me with a skype ID. Also, please remove the component I uploaded in my earlier reply so other users can't download it.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, March 10 2019, 08:54 AM - #Permalink
    0
    hello,

    for custom coding requests, please contact us at support@ joomlathat.com directly

    the URL https://www.joomlathat.com/documentation/affiliate-tracker/using-the-api-to-create-conversions
    tells you what every field is for, it's documented in the article

    name: (required) The name of the conversion.
    component: The component name. E.g. com_yourcomponent
    extended_name: A specific item name for the conversion.
    type: (required) 1 in most cases. It is used to identify different types of commissions for the same component.
    value: (required) The monetary value of the conversion.
    reference_id: A reference to identify the conversions created with this API call.
    approved: (required) A boolean indicating if the conversion is automatically approved or needs approval.
    atid: The affiliate id to whom the conversion will be created. Leave it empty to let the system find it.
    The reply is currently minimized Show
Your Reply