There might be a way to do this in your plugin (depends on the plugin), but assuming the Analytics code is added in the header, you could add the following just before </head>
in header.php
:
<?php if (is_user_logged_in()) { ?> <script type="text/javascript"> _gaq.push(['_setCustomVar', 1, 'User Type', 'Member', 2 ]); </script> <?php } ?>
It’s untested, but it should do the trick.
Related Posts:
- WordPress dFactory Cookie Notice Plugin
- How to enable button onClick functions and java script in wordpress post
- How to add custom javascript to WordPress Admin?
- How can i Toogle between 2 icons without reloading page in wordpress
- How to extend WordPress Bookly plugin
- validate textfield contents in wordpress simple job board plugin
- How to implement inline cm/inches conversion in WordPress
- JS Manga Reader with WordPress NoConflict JQuery
- Redirect old php link to wordpress link in .htaccess
- How to change thumbnails for WordPress pages (KakaoTalk)
- google my maps ~ custom map embed into wordpress
- google my maps ~ custom map embed into wordpress
- Remove “Protected” text in title h1 of protected wordpress pages
- WordPress plugin install: Could not create directory
- What is the meaning of ‘OFFSET’ => 1 (WordPress)
- WordPress makes an auto-draft as soon as I enter the page
- Using WordPress on 000webhost.com
- Add CashU payment gateway to WordPress Woocommerce
- Display only one category on home page wordpress
- WordPress custom thumbnail size
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Advanced Custom Fields, Yoast SEO, not updating new values in WordPress
- WordPress how to remove blocksy theme price and put my own price
- WordPress sort WP ULike posts in custom query?
- Exclude Featured Posts in WordPress ‘Recent Posts’ Function
- WordPress: How to overlay text / widget div on top of a revolution slider
- Random Question Mark Icons In WordPress Text
- php, cookies, wordpress – how to make automatic login in one one site, login and on other one
- How can I removed Powered by WordPress link in wp.login.php without editing core WP files?
- Creating a custom rebrandly link using a wordpress shortcode
- Binance Long Short Ratio Chart In WordPress
- WordPress thumbnail cropping not working
- Flaticons not showing up on WordPress
- What does arg mean in WordPress
- WordPress PHP proxy/helper pages for Twitter API
- WordPress: Loading multiple scripts with enqueue
- WordPress: Loading multiple scripts with enqueue
- Display all post meta keys and meta values of the same post ID in wordpress
- How to use wp_enqueue_style() in my WordPress theme?
- About 404 during WordPress installation
- WordPress Email Share button not opening in Outlook
- “The Events Calendar” plugin by Modern Tribe in WordPress not working
- Embedding a Square Appointments script into a WordPress site – it’s rendering fullscreen in the preview pane, so I can’t edit other content. Thoughts?
- WordPress Main Menu – Hide ‘Home’ link on homepage only
- how to create a custom live search in WordPress from scratch
- Why am I getting 404 not found on this wordpress subdomain on my Nginx server?
- wordpress Simple Job board plugin hide cv attachment form
- How can I access http://localhost/wordpress/wp-admin/install.php?
- How can I access http://localhost/wordpress/wp-admin/install.php?
- WP_Query(‘orderby=post_date’) not working with wordpress
- WordPress get_terms() function not display custom taxonomy categories for woocommerce
- W3 Total Cache WordPress plugin disturbing my page layout
- Advanced Custom Fields, WordPress, Javascript Tabbed Content
- Exclude tags from gatsby-source-wordpress-experimental
- Scalable wordpress setup
- cannot change admin password, wordpress on godaddy
- WordPress website broken in Facebook mobile browser
- WordPress Password Protected Page is not protected
- How do i give a WordPress editor access to the Site Kit by Google plugin?
- Local wordpress install only shows home page, all other pages Not Found
- How to display WordPress search results?
- Permalinks in WordPress not working
- cannot change admin password, wordpress on godaddy
- cannot change admin password, wordpress on godaddy
- WordPress – Display Random Number Between 190-250
- WordPress Order by date on custom post type archive page
- How to set on load marathi language using google translator in wordpress?
- Divi Child Theme Breaks WordPress Customizer
- Get the WordPress attachment image url
- WordPress theme Flatsome 3.11: UX Builder not loading
- After migration of WordPress website I can’t access the admin (white page)
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- WordPress: Login for Users Without access to wp-admin
- WordPress (GoDaddy: Linux w/cPanel (Apache))_ My 2nd site is FUBAR__ subdomain multisite network installation
- I have shifted my wordpress site from one host to another, after shift the website wp-admin is not open
- WordPress- url for localhost wp-admin is not working
- Muffin Builder has a limit? (WordPress – Be Theme)
- Uncaught type error after WordPress update to 5.5.3 and visual composer to 6.4.1
- How to use If, If Else and else in WordPress
- update post meta wordpress
- Enable “Post Formats” Just For a “Custom Post Type” And Not Others In WordPress
- Get Categories of events in WordPress Events Calendar Pro Plugin
- How can I add a PHP page to WordPress?
- How can I add a PHP page to WordPress?
- Embed podcast feed in wordpress
- Why can’t import backup site WordPress? Plugin All-in-one migration
- Problem getting data with WooCommerce/WordPress
- Problem getting data with WooCommerce/WordPress
- How to correctly use get_template_directory_uri() WordPress function to load an image that is in a subfolder of my theme?
- Display all post meta keys and meta values of the same post ID in wordpress
- Custom Coupon type woocommerce wordpress
- Error establishing a database connection in my localhost
- why are two paragraphs being added on wordpress custom excerpt function used?
- Correct way of using wp_get_attachment_image() in wordpress
- How to cache/speed WordPress queries for logged in users?
- Page Redirection in WordPress
- How to easily add cropped screenshot to self-hosted WordPress as hosted image?
- Which ways can be used to log in to WordPress?