• Resolved Andrew Bondar

    (@kronos1705)


    Hello!

    With your plugin, can you configure the transfer of the visitor user-agent to Google Analytics reports?
    I need this to track bots and block their access to the site by user-agent.

Viewing 1 replies (of 1 total)
  • Hi @kronos1705,

    You can view browser, OS, and mobile device data in your UA property under Audience > Technology and Audience > Mobile.

    If you want to programmatically send a custom dimension to GA to set the user agent for each hit, you can follow this example PHP action hook.

    https://gist.github.com/chavesm/8b86c58e66b3d1ca21bc3b4fd6412bd6

    Remember to change the custom dimension index number in the gist to the one you create in your GA property.

    Let us know how that goes ??

    Mark

    • This reply was modified 3 years, 7 months ago by mark l chaves. Reason: Fixed report paths
    • This reply was modified 3 years, 7 months ago by mark l chaves. Reason: Fixed strong tags
Viewing 1 replies (of 1 total)
  • The topic ‘Configure user-agent transfer’ is closed to new replies.