• Resolved phiotr15

    (@phiotr15)


    Hello there,

    After opening the lists I would like to show ads based on utm parameters. The parameter I have tried with is utm_source=xyz. I have allowed client side insertion in the general tab and it is working correctly with the hashtag parameter. However when I try to insert any other parameters it’s not working.

    Tried with the following:
    utm_source=xyz
    ‘utm_source=xyz’
    data, utm_source=xyz
    source=xyz
    xyz

    None of the above mentioned worked. Neither with blackilisting nor with whitelisting.

    I would appreciate the help.

    Best,
    Phiotr

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Spacetime

    (@spacetime)

    Please enable remote debugging and provide test url to check.

    Thread Starter phiotr15

    (@phiotr15)

    I have enabled remote debugging, what kind of test URL do you require?

    Plugin Author Spacetime

    (@spacetime)

    Remote debugging doesn’t seem to be enabled.

    A url with url parameters to test.
    For example:
    https://www.napmintnap.com/?utm_source=xyz

    Thread Starter phiotr15

    (@phiotr15)

    Cleared cache, now it should be enabled.
    I want it to work for post pages, so any post that you find would work.

    https://www.napmintnap.com/erdekes/altalaban-vallalatokbol-szereztek-bevetelt/?utm_source=xyz

    Plugin Author Spacetime

    (@spacetime)

    No block seems to be configured for url parameter utm_source=xyz.
    Please check.

    Thread Starter phiotr15

    (@phiotr15)

    The idea would be that it enables block 10 if the utm_source=xyz and disables block 11.
    I have configured it like that now. Unfortunately adding the parameter to block 11 (should not be visible whn utm_source=xyz) made the ad from the block. If I click label blocks it says it’s visible – the ad is missing but the navigation bar is still there (both are parts of the same block)

    • This reply was modified 5 years, 11 months ago by phiotr15.
    Plugin Author Spacetime

    (@spacetime)

    It seems the url seen by the plugin does not have any url parameter:

    URL: /erdekes/altalaban-vallalatokbol-szereztek-bevetelt/

    Tested on the test server and it works normally.
    Maybe some plugin is interferring with it.

    You can use debugging functions to see the plugin processing log:

    https://www.napmintnap.com/erdekes/altalaban-vallalatokbol-szereztek-bevetelt/?utm_source=xyz&ai-debug-processing-fe=1&ai-debug-blocks=1

    Processing log (with data seen by the plugin) is below the page content.

    Thread Starter phiotr15

    (@phiotr15)

    Sorry but I don’t really understand IT. Do you mean that even though someone is arriving with utm_source=xyz, they are not shown the right ads because adinserter can’t see the parameters somehow?

    How come that the navigation bar in block 11 is shown and the ad is not?

    By the way, really appreciate the help! Thank you!

    Plugin Author Spacetime

    (@spacetime)

    No. This has nothing to do with Ad Inserter. It gets the url from the WordPress.
    It uses WP function remove_query_arg () to get current URL without debugging parameters.
    This function should return current url (with your query parameters).
    But in your case it seems it returns url without query parameters.

    Try this PHP code to see what URL the function returns:

    <?php
    
    echo remove_query_arg ('');
    
    ?>

    I would suggest to check again with the default theme and all plugins disabled.

    Not sure what navigation bar you mean.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘URL Parameters not working’ is closed to new replies.