eleganteye
Forum Replies Created
-
Thank you for the help. The following is what I did and it is working. Note to others: You must replace “example.com” and use your own google analytics ID (UA-xxx…).
The ga(‘create’, may be redundant because it’s probably in your page footer tracking code already. I’m not a Google Analytics expert, so I’m not sure if you need one for each click on a page.
jQuery(document).on( 'jp_carousel.selectSlide', '.jp-carousel-wrap', function( event, slides ) { // pass value to google analytics ga('create', 'UA-xxxx-1', 'example.com'); ga('send', 'pageview', { 'page': location.pathname + location.search + location.hash}); } );
That puts the full path including the anchor (#) tag into GA. Something like:
/dir/subdir/pagename/#jp-carousel-1744 — This way you can take a look at your most popular images, trace what people look at next, and even figure out what images they are skipping.Because I have a child theme (as most trying this will) I needed “get_stylesheet_directory_uri” in the following (a variation from many examples) to enqueue in my theme_functions.php (vantage_child is just the name of my theme). I used the browser console to debug path errors for the missing script.
/** * enqueue script */ function vantage_child_scripts() { wp_enqueue_script( 'carousel-analytics', get_stylesheet_directory_uri() . '/js/carousel-analytics.js', array(), '1.0.0', true ); } add_action( 'wp_enqueue_scripts', 'vantage_child_scripts' );
ga(‘send’, ‘pageview’) will have already been sent through the normal tracking code. Because carousel doesn’t load a new page, I don’t think it will be sent (at least I don’t see it watching live data on my site)
I think what needs to be done is:
ga(‘send’, ‘event’, ‘gallery’, ‘click’, image/path/filename);
I have tried this with hard-coded generic data ‘image’ But how do I put the actual image/path/filename into a variable?
Forum: Plugins
In reply to: [SB Child List] Stopped working.
Well, here is how to make your own plugin:
https://gist.github.com/BFTrick/7873168My guess is that something changed in the woocommerce code, and checkout manager has not been updated
Forum: Plugins
In reply to: [Page Builder by SiteOrigin] After page builder update PB Gallery dosent workWhen this is fixed, I’d like to know! (not sure if there’s a less obvious way to following this post)
Forum: Fixing WordPress
In reply to: Jetpack Publicize not adding featured images to my Twitter feed@wpyogi. My apologies, I had hoped to have been helpful to the OP.
Forum: Fixing WordPress
In reply to: Jetpack Publicize not adding featured images to my Twitter feedI’m trying to accomplish this too.
I found this article, https://jetpack.me/support/publicize/twitter/
But I have not got it to post more than a link yet.I’ve whitelisted image posts via the Twitter validator.
I get a warning about the https://wp.me/ shortlink redirect, but the validator shows the correct card. However, in the Twitter feed, it’s still just a link.Forum: Plugins
In reply to: [ScrapeAZon] iframe showing too smallI had the same problem. I added this to my CSS, which fixed it:
#scrapeazon-iframe {
width: 100%;
height: 100%;
}Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Warning:array_mergeThis only happens on one of my sites. I’ve decided not to use Mailchimp there. But it may be a conflict with other plugins or a theme.
Forum: Plugins
In reply to: [WP WooCommerce Mailchimp] Warning:array_mergeWarning: array_merge(): Argument #2 is not an array in /wordpress/wp-content/plugins/woocommerce-mailchimp/classes/class-ss-wc-integration-mailchimp.php on line 172
Forum: Plugins
In reply to: [Customizer for WooCommerce] Cart button text for downloadable products?Thanks. Maybe someday I’ll look into building that, or someone else will!
Forum: Plugins
In reply to: [Relevanssi - A Better Search] Fatal error with woocommerceThanks, that fixed it.
Forum: Plugins
In reply to: [Awesome Flickr Gallery] How do I remove cbox title?I’m trying to do this with CSS. The style is inline rather than a style name. I tried this:
#cboxTitle {
display:none;
}but it didn’t work.
Forum: Plugins
In reply to: [Google Author Link] Error: Missing required hCard "author".I get the same thing. In looking at the source code, I don’t see the Google plus link anywhere in my site. Can I manually add the needed code in a widget?
Forum: Plugins
In reply to: [BuddyPress Moderation] Error messageI also get Fatal error: func_get_args(): Can’t be used as a function parameter in /home/aaron843/public_html/wp-content/plugins/bp-moderation/bpModLoader.php on line 119
This plugin has not been updated since July 2013, so don’t hold your breath. I’m not sure how much time has to pass before a plugin is officially considered abandoned by WP, but maybe someone could take it over?