Please enable remote debugging and provide test url to check.
I have enabled remote debugging, what kind of test URL do you require?
Remote debugging doesn’t seem to be enabled.
A url with url parameters to test.
For example:
https://www.napmintnap.com/?utm_source=xyz
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
No block seems to be configured for url parameter utm_source=xyz.
Please check.
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.
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.
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!
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.