Viewing 1 replies (of 1 total)
  • Plugin Author Marin Atanasov

    (@tyxla)

    Hi again, @swahlgren!

    I’m glad you find WP Hydra useful.

    Regarding Google Analytics integration and a separate tracking code for each domain, this is totally out of the plugin purpose, so it can’t be done out of the box.

    However, it can be done with some custom code. I envision building a new plugin for that functionality. This plugin would basically do the following:

    1) Register a “Domains” post type.
    2) Each domain entry would have 2 fields: one would contain the domain, and the other would contain the tracking code. You can use the domain entry title for the domain, and the domain WYSIWYG editor content for the tracking code.
    3) There would be a custom function, detecting the current domain and comparing it to the existing domain entries. If it finds a match, it would enqueue its corresponding tracking code to the wp_head().

    I’d love to build that solution for you, but it is custom work and would require you to hire me as a developer, which is not allowed here at the WordPress Support Forums.

    In case you want, you can try building that plugin yourself, and you can feel free to follow my instructions for crafting it.

    Good luck!

    Regards,
    Marin

Viewing 1 replies (of 1 total)
  • The topic ‘Hydra with analytics’ is closed to new replies.