-
AuthorPosts
-
September 20, 2016 at 3:50 pm #689352
Hello,
I have SumoMe (Content Analytics and Heat Map) running on my home page. The plugin seems to think that the entire page is contained within the first Full Width Color Section. On my homepage, the end of the first image background is apparently 100% of the page even though there is way more to scroll to. If I remove it, it will track until the next Full Width Color Section. Below are the steps that the plugin support would like me to implement to resolve the issue:
**************************************
“You are experiencing this issue because SumoMe is mistaking an article on your page as your main container.
SumoMe article detection will sometimes return “False positives” and flag something as an article, even if it isn’t. When this occurs we recommend you do the following:* Add role=”main” to the primary container.
* Add our specialized class “aside” which will allow SumoMe to ignore the false positive
If you are unsure how to do this, I would suggest contacting your theme creator as they would be able to assist you further.
Once you’ve made the changes, this should resolve the issues SumoMe is having with finding your articles properly.”
**************************************Can you explain what I need to do to resolve this? Thank you for your help!
September 20, 2016 at 3:56 pm #689357Hi JaredBurnett!
Can you please point out the section where you need to apply these changes?
We do not provide support for 3rd party plugins but we do not mind taking a quick lookBest regards,
YigitSeptember 20, 2016 at 4:22 pm #689392My homepage consists of 6 Color Sections. I think the issue is with each color section because if I take one out, and have its content out of a section, it will track till the end of the next Color Section. The goal is for the Plugin to be able to track the entire page. So whatever needs to be done for that to happen. You can see in the image attached:( http://pasteboard.co/5oblux7Gj.png ) that the plugin thinks the end of the page is at the end of my first color section.
SumoMe’s theme support suggested this:
* Add role=”main” to the primary container.
* Add our specialized class “aside” which will allow SumoMe to ignore the false positiveThanks Again!
September 20, 2016 at 4:25 pm #689394Hi!
I am not sure if adding attribute using jQuery would help but let us give it a try. Please add following code to Functions.php file in Appearance > Editor
function avia_custom_home_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.home #main').attr('role','main'); jQuery('.home #main').addClass('aside'); }); </script> <?php } add_action('wp_footer', 'avia_custom_home_attr');
Cheers!
YigitSeptember 20, 2016 at 4:34 pm #689399It does not appear to have made a difference. I purged the varnish and cache as well. For what it’s worth, I do remember it tracking the whole page at some point before (maybe like last year). Not sure if you guys made any changes to the theme that would have affected containers this way since then.
September 20, 2016 at 6:01 pm #689460Hi!
There are no changes, that would block the changes to to the theme.
If you contact the SumionMe Guys, what they have told you? Noah is a really good guy, I am sure he will be able
to help you as good as possible!Thanks a lot
Best regards,
BasilisSeptember 20, 2016 at 6:11 pm #689465I’m reaching back out to SumoMe support. If you would, please leave this ticket open for the time being to see if they have any more code they need me add.
Thanks,
JaredSeptember 20, 2016 at 8:04 pm #689501Hello guys. This is what SumoMe suggested to try next…
************************************
I would suggest adding the “aside” class to the article below, as this should resolve your issue:<main class=”template-page content av-content-full alpha units” style=”background: rgba(0, 0, 255, 0.498039);”></main>
After adding the aside class, the article should look like this:
<main class=”template-page content av-content-full alpha units aside” style=”background: rgba(0, 0, 255, 0.498039);”></main>
************************************How do I go about making these changes?
Thanks,
JaredSeptember 22, 2016 at 3:07 pm #690288Hi!
Please try changing the code to following one
function avia_custom_home_attr(){ ?> <script> jQuery(window).load(function(){ jQuery('.home main').addClass('aside'); }); </script> <?php } add_action('wp_footer', 'avia_custom_home_attr');
Best regards,
YigitSeptember 22, 2016 at 3:50 pm #690320No dice. Looks like it’s still just tracking the first Color Section or it thinks the main content is only to the end of the Color Section.
September 27, 2016 at 4:10 am #692045Hi,
<main class=”template-page content av-content-full alpha units” style=”background: rgba(0, 0, 255, 0.498039);”></main>
The markup above does not exist. Could you please ask SumoMe to provide a screenshot of the section? And what do they mean by “primary container”? Please try this code while you’re waiting for a response.
add_action('wp_footer', 'ava_custom_script'); function ava_custom_script(){ ?> <script type="text/javascript"> (function($) { function gh() { $('.home #av_section_1 main.template-page').attr('role','main'); $('.home #av_section_1 main.template-page').addClass('aside'); } gh(); })(jQuery); </script> <?php }
Best regards,
IsmaelSeptember 27, 2016 at 10:51 pm #692453Hey guys. It looks like the code didn’t help. I reached out to SumoMe about what you requested. This is their reply:
Hello, again!
I have attached a screenshot that shows the article being mistaken as your main container.
You will see within the screenshot that once the “aside” class has been added and new campaign has been started, Content Analytics tracks your page perfectly.
Hope this helps!
Attachment(s)
https://p6.zdusercontent.com/attachment/912584/aY3tS9d0ZzuOAaiDw6AYpiywI?token=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0..9aKlPEq6-V3-7KakFiBHmw.ovTiq2VT1CSbvfIAJGZtCT63BePfDZH1ZSKtft1bqQ0eYU21V9DhqYjsKooEIb-DE8CuzVcGiPMpTQ29jyBoe-r5qQ-YsxQbFI7FqKwizH1SIn-NHWp3MoDL5XDwlUMKeFhmw2Espp5wiOgu_b3B56-mJ4cN5OtYoIQ_lUaVaafXdLB-3ldpVZbYTK4ebKiFrtK8EHRYg37V4cKyX2kCDqmhKkEKX-KTFL1ljIXh5_hgHyHBqqlH7o0qxC3Izxws8JrRhleJwZVW03gf6F1_Ng.ZF5jbFCQ8tHG_pbWuhajYgLet me know what code I need to add or you can do it if you want. I see in the screenshot that when SumoMe added the aside class manually it works but it’s not a permanent fix.
October 1, 2016 at 4:30 am #694131Hi,
Thank you for the info.
You will see within the screenshot that once the “aside” class has been added and new campaign has been started, Content Analytics tracks your page perfectly.
What about the role attribute? Where do we have to apply it? We modified the code above. Please try it again.
Best regards,
IsmaelOctober 4, 2016 at 8:49 pm #695240Hello,
It doesn’t look like changing that code made a difference.
Below is the response from SumoMe regarding your question: “Adding the “aside” class to the article should work just fine without adding the role attribute.”
October 5, 2016 at 6:11 pm #695671Hi,
Please go to Appearance > Editor and open functions.php file and find
$avia_config['layout']['fullsize'] = array('content' => 'av-content-full alpha', 'sidebar' => 'hidden', 'meta' => '','entry' => '');
and change it to
$avia_config['layout']['fullsize'] = array('content' => 'av-content-full alpha aside', 'sidebar' => 'hidden', 'meta' => '','entry' => '');
Let us know if that helps.
Best regards,
YigitOctober 5, 2016 at 6:23 pm #695681That did the trick! Thank you very much! Case closed!
October 5, 2016 at 6:27 pm #695683 -
AuthorPosts
- The topic ‘SumoMe Not Tracking Full Page’ is closed to new replies.