Google Analytics

This confusion relates to WallStreet v1.5.

In previous versions (with option panel - a wonderful feature) there was a section for GA code.  However, I don't seem to find it now that everything's been moved to the Customizer.  Also, there is some talk on the forum about the code area not working, or perhaps it being removed.

Can you please provide some clarity?

Comments

  • Hi 

    at this time google analytcs fild not given at this time but if you want to use GA then follow these given instruction 


    go to in your theme directory >> functions >> customizer  customizer-home.php 

    open customizer-home.php and go to in  end of file and paste it on 198



    // Google Anlytics
    $wp_customize->add_setting(
        'wallstreet_pro_options[google_analytics]',
        array(
            'default' => '',
    'sanitize_callback' => 'sanitize_text_field',
    'type' => 'option',
        )
    );
    $wp_customize->add_control(
        'wallstreet_pro_options[google_analytics]',
        array(
            'label' => __('Google Analytics','health'),
            'section' => 'footer_google_analytics',
            'type' => 'textarea',
        )
    );

    save

    let me know its works

    Thanks
    Abhishek

  • Hi @nicolus,

    Any update here ?

    Thanks
    Abhishek
  • Hello.  And thank you for your efforts.  The code does NOT work.  When pasting it as instructed, it simply appears as plain text across the top of wordpress.
  • let me know where are yo pasting it 

    and also share me screen shot

    Thanks
    Abhishek
  • Going to

    [FTP CONNECTION] /home/xxxxxx/public_html/xxxxxxx/wp-content/themes/wallstreet-pro/functions/customizer/customizer-home.php


    GA Capture.PNG
    26K
    dashboard.PNG
    112K
    Top of website.PNG
    23K
    Top of WP.PNG
    20K
  • Hi nicolus,


    you paste code on wrong place plz paste it before closing curly bracket "}"

    if you have any confusion plz have a look in attached screen shot 

    let me know   
    code structure.png
    75K
  • How does this look to you?

    If it's ok, now what?  Where do I put our goog analytics code?
    New GA Capture.PNG
    53K
  • http://webriti.com/support/uploads/FileUpload/aa/1f7121a4270dc8503eb5ea75f23e21.png

    see on line number 193 you past code after php tag "?>" close so its print code on your screen 


    Thanks
    Abhishek
  • edited December 2015
    What am I doing wrong?  What am I not seeing?  Attached is my entire customizer-home php file.
    customizer-home.php.ga modified.txt
    6K
  • plz share your site admin details on my email [email protected] 

    we will fixed it on your site.

    Thanks
    Abhishek


  • The login password for the site is

    tvDb!XLvOqKJw(6lTj5Gs8m(


  • Hi Nicolus

    You can add the script with the help of plugin. Download and activate the plugin Header and Footer Scripts . Now copy paste the google analytics java-script code in the header or footer setting by the plugin whichever place you like to en-queue. Refer plugin doc for better asisstance.

    Let me know did that work for you or not.


    Thanks
    Priyanshu

    Note:::In the next update we will add that feature.
  • Thank you.  I like to keep WP light of plugins.

    I am using v1.6 of WallStreet now.

    I look forward to the next update.

    Hopefully another feature request would be the ability to;

    1 - Use a larger array of custom fonts

    2 - Change the color scheme of the Money Green (Love it... So Wallstreet!)

    3 - An actual aesthetically pleasing FAQ section

    You may close this ticket as I think Abhishek is working on this ticket on the backend
  • Hi

    Resolved 
    plz check and let me know.

    Thanks 
    Abhishek
This discussion has been closed.