Maps and Analytics Issues

This topic contains 7 replies, has 3 voices, and was last updated by  Kiran 4 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #512717

    Wesley Lewis
    Full Member
    Post count: 38

    Having 2 different issues. (You will have to logged in to view)

    1. The Google Maps aren’t showing for address on the add-listing form here: https://christianlawyerdirectory.com/add-listing/?listing_type=gd_place I’ve read this is some sort of plugin conflict, so I disable all unnecessary plugins and still not working.

    2. On my listing pages, I can’t get the Google Analytics to show anything other than the weekly view. They don’t have nearly the options as seen here: https://wpgeodirectory.com/front-end-google-analytics/ I also just launched the site a week ago. I’m building the client listings with the theme builder in elementor. Not sure if that has something to do with it.

    #512720

    Wesley Lewis
    Full Member
    Post count: 38
    This reply has been marked as private.
    #512722

    Alex Rollin
    Moderator
    Post count: 27815
    This reply has been marked as private.
    #513030

    Kiran
    Moderator
    Post count: 7069

    Hi Wesley,

    1. The Google Maps aren’t showing for address on the add-listing form.

    One of plugin converting

    &

    to

    #038;

    in html and it breaks JavaScript on the page.
    I have added following PHP snippet under Snippets to fix this.

    
    
    /**
     * Fix changing "&" to "& #038;".
     */
    function gd_snippet_191014_the_content( $content ) {
    	if ( ! empty( $content ) && strpos( $content, "geodir_" ) !== false ) {
    		$content = str_replace( "&" . "#038;&" . "#038;", "&&", $content );
    	}
    	return $content;
    }
    add_filter( 'the_content', 'gd_snippet_191014_the_content', 9999, 1 );

    2. On my listing pages, I can’t get the Google Analytics to show anything other than the weekly view.

    I have added following CSS in Appearance > Customize > Additional CSS

    
    
    /* Fix GD listing Google analytics type selector */
    .gdga-type-container span.select2-selection.select2-selection--single.gd-select2-selection {
    	display: block;
    }

    Please check after clearing your browser cache and let us know.

    Regards,
    Kiran

    #513094

    Wesley Lewis
    Full Member
    Post count: 38

    Ok, they both seem to be working now. Thank you.
    1. Do you know what plugin was causing breaking javascript?

    2. On the analytics choices, I don’t see a “This Month vs. Last Month” which would be probably the most viewed analytic. Is it possible to display that as well?

    #513157

    Kiran
    Moderator
    Post count: 7069

    Hi Wesley,

    1. Do you know what plugin was causing breaking javascript?

    To find which plugin causing this issue, it needs to disable non GD plugin/theme one by one. Do you want me to check?

    2. On the analytics choices, I don’t see a “This Month vs. Last Month” which would be probably the most viewed analytic. Is it possible to display that as well?

    This has been implemented but it will be in next release of Google Analytics plugin.
    You can apply this patch: https://github.com/AyeCode/geodir-google-analytics/pull/11/commits/793ed20f216ffc60d50a514ab3cd4b918844889d

    Thanks,
    Kiran

    #513295

    Wesley Lewis
    Full Member
    Post count: 38

    No need to troubleshoot the conflict. The site is live and I don’t want to mess anything up. I’ll take a look at the Monthly analytics as well. Thank you for looking into it.

    #513322

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket