Title: flacoste's Replies | WordPress.org

---

# flacoste

  [  ](https://wordpress.org/support/users/flacoste/)

 *   [Profile](https://wordpress.org/support/users/flacoste/)
 *   [Topics Started](https://wordpress.org/support/users/flacoste/topics/)
 *   [Replies Created](https://wordpress.org/support/users/flacoste/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/flacoste/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/flacoste/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/flacoste/engagements/)
 *   [Favorites](https://wordpress.org/support/users/flacoste/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] So… Does cross-domain work?](https://wordpress.org/support/topic/so-does-cross-domain-work/)
 *  [flacoste](https://wordpress.org/support/users/flacoste/)
 * (@flacoste)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/so-does-cross-domain-work/#post-4178263)
 * Is the “Add _setAllowLinker” checked?
 * And yes, the domains should only be the domain itself (www.example.com, not [http://www.example.com](http://www.example.com)).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] So… Does cross-domain work?](https://wordpress.org/support/topic/so-does-cross-domain-work/)
 *  [flacoste](https://wordpress.org/support/users/flacoste/)
 * (@flacoste)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/so-does-cross-domain-work/#post-4178252)
 * Hello again,
 * Actually, that change shouldn’t be applied after all. return false; _is required_
   because otherwise, the normal URL will be used by the browser, and this one doesn’t
   include the additional parameters containing the cross-domain tracking information.
 * I’m not sure why the link weren’t working initially for me, but I reverted my
   change and everything seems to work now.
 * So in short, 4.3.3. should work correctly for muli-domain tracking once configured.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[MonsterInsights - Google Analytics Dashboard for WordPress (Website Stats Made Easy)] So… Does cross-domain work?](https://wordpress.org/support/topic/so-does-cross-domain-work/)
 *  [flacoste](https://wordpress.org/support/users/flacoste/)
 * (@flacoste)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/so-does-cross-domain-work/#post-4178248)
 * Hi Jeff,
 * I installed 4.3.3 and got it to work for my site.
 * For configuration, in the “Advanced Settings”, I’ve checked “Enable Cross Domain
   Tracking”. And then I put my main domain in “Cross-Domain Tracking, Primary Domain:”,
   and added my other domains (external e-commerce site) in “Cross-Domain Tracking,
   Other Domains”.
 * If you are logged in as administrator when viewing the site, I think by default
   it won’t add the “_link” thing. (No analytics at all at that user level unless
   you change the “Ignore users” settings.
 * If you log out or you use an “incognito window” in Chrome, you’ll probably see
   the proper analytics code added.
 * There is one bug though. The link to the other domains won’t work. If you click
   on them, nothing will happen (they will be recorded though). The reason is because
   the onClick handler ends with “return false;” which means, don’t follow the actual
   link.
 * I fixed that by changing file `google-analytics-for-wordpress/frontend/class-
   frontend.php`
 * Look for:
 *     ```
       if ( isset( $this->options['trackcrossdomain'] ) && $this->options['trackcrossdomain'] && in_array( $target["host"], $crossdomains ) ) {
       						$trackBit = '_gaq.push([\'_link\', \'' . $matches[2] . '//' . $matches[3] . '\']); return false;"';
       ```
   
 * And change the `$trackBit`line to:
 *     ```
       $trackBit = '_gaq.push([\'_link\', \'' . $matches[2] . '//' . $matches[3] . '\']);"';
       ```
   
 * (Simply remove the `return false;` part.
 * Everything works great after that.
 * Cheers

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