• Resolved giannetwork

    (@giannetwork)


    I place the Login Button on several pages within my website and I want to track the page where the users registered. I have placed the shortcode using trackerdata value ([nextend_social_login trackerdata=”registered_from”]) and followed the instruction here: https://nextendweb.com/nextend-social-login-docs/backend-developer/#trackerdata

    However, when users register I can’t find the data of the page where they registered, even on the wp-admin/users.php page, I found there is no data of the trackerdata.

    So how/where can I find the data collected by this trackerdata?

    Or perhaps I set the PHP script on the wrong way!?

    • This topic was modified 3 years, 7 months ago by giannetwork.
    • This topic was modified 3 years, 7 months ago by giannetwork.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @giannetwork

    Please note that we can not provide support for custom coding.

    But what you need to know is that, the tracker data feature is rather to identify the social buttons the user connected with. E.g. if you have 2 pages where you display social buttons, one with the trackerdata and another without the tracker data, then with a condition ( like you saw in the documentation ) you could distinguish these two buttons from each other, so you can tell which social button was used and you can run custom codes depending on that.

    So just by using our shortcode with the trackerdata parameter, you won’t be able the get the URL of the current page. ( Unless you know that the button with trackerdata “x” always appears on the page with the given URL.)

    The “registered_from” value for the trackerdata parameter is just a custom value we picked. Actually it can be anything.
    If you check the example:

    you will see that, we set a cookie, and that is the cookie that will actually store the URL of the given page.

    Did you set a cookie?
    Did you check the value of the cookie?
    Also did you add the data as user meta like we did in the example?
    If you did all of these, then the data should be stored in the <wp-preffix>usermeta table with the meta_key name that you set. And you could get the data with the get_user_meta() function:
    https://developer.www.ads-software.com/reference/functions/get_user_meta/

    Best regards,
    Laszlo.

Viewing 1 replies (of 1 total)
  • The topic ‘Identify the page where the user registered’ is closed to new replies.