Forum Replies Created

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • Hi, it works! Somebody change GA code for Tags… Very easy. Thank you!!!

    Hello,
    Sorry, may be polar bear dead,bu it doesn’t work…
    I made a GA goal:
    Request
    Send
    CF_Enfold
    1

    And my tracking code is:
    add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
    function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
    $gaq = “_gaq.push([‘_trackPageview’, ‘UA-98919545-5’]);\””;
    $att = “onclick=\”ga(‘send’, ‘event’, ‘Request’, ‘Send’, ‘CF_Enfold’); return true;\” value=\”Order\””;
    return $att;
    }

    But it doesnt track any activity… and i tryed that code:
    add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
    function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
    $gaq = “_gaq.push([‘_trackPageview’, ‘UA-98919545-5’]);”;
    $att = “onclick=\”ga(‘send’, ‘event’, ‘Request’, ‘Send’, ‘CF_Enfold’,1);\””;
    return $att;
    }

    Also the same – no results…

    Hello,

    Thank you very much for your great work!

    Problem that it always with a syntaxis error. Here is manual:

    <form action=””>

    <input type=”button” onclick=”ym(XXXXXX, ‘reachGoal’, ‘TARGET_NAME’); return true;” value=”Order” />
    </form>
    …:

    For test i made GA similar tracking – it works perfect. But with YM i can’t do the same:
    add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
    function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
    $gaq = “_gaq.push([‘_trackPageview’, ‘UA-98919545-2’]);\””;
    $att = “onclick=\”ga(‘send’, ‘event’, ‘Request’, ‘Send’, ‘CF_Enfold’);\” “;
    $att = “onclick=\”ym(44799976, ‘reachGoal’, ‘contact_form_click_camp’); return true; value=”Order”;\” “;
    return $att;
    }

    syntax error, unexpected ‘Order’ (T_STRING)

    Hi, few days ago new metrika start to work and new syntaxis:
    https://yandex.com/support/metrica/objects/reachgoal.html

    I made next code to instert in functions.php:

    add_filter(‘avf_contact_form_submit_button_attr’,’avia_add_submit_attributes_to_cf’, 10, 3);
    function avia_add_submit_attributes_to_cf($att, $formID, $form_params){
    $att = “onclick=”ym(44799976, ‘reachGoal’, ‘contact_form_click_camp’); return true;” value=”Order”;”
    return $att;
    }

    And always with a error, can you pls help?

    in reply to: Avia Layout Builder – Enfold 4.5.2 WordPress 5.0.3 #1057826

    Hello,
    I don;t like to create a new post…

    same wp-5-0-3 and problems with avia builder.
    Example: https://extremelab.online/wp-admin/post.php?post=3611&action=edit
    Every time i try modificate, it double content of the page.

    If i try to modificate only contact form on this page: i add a new fiels – phone, and it add 2 fielsd – duplicate of e-mail + phone. Ok, Save, again modifiction – already 10 fields inside…

    in reply to: Header widget problem #1056441

    Hi, thank you, now i can see it)

    in reply to: Header widget problem #1055760

    Hi, i made a new-one

    in reply to: Header widget problem #1054670

    Hi,
    I tryed to deactivate them all – no results. You can do it too, no problem, for test.

    in reply to: Header widget problem #1053980

    Hello, access ready!)

    in reply to: Layout template bulk modification #803319

    Hi!

    I create a new template php on the base of page.php just gave a new name. As i understand, this part of code responsable for what i see on the page from avia layout:

    <div class='container'>
    
    				<main class='template-page content  <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content','post_type'=>'page'));?>>
    
                        <?php
                        /* Run the loop to output the posts.
                        * If you want to overload this in a child theme then include a file
                        * called loop-page.php and that will be used instead.
                        */
    
                        $avia_config['size'] = avia_layout_class( 'main' , false) == 'fullsize' ? 'entry_without_sidebar' : 'entry_with_sidebar';
                        get_template_part( 'includes/loop', 'page' );
                        ?>
    
    				<!--end content-->

    Also i have a page with avia contend (title, text, cf etc.) and want to not only create may similar pages but have poissibility to modificate – mean change blocks places, add some blocks and on all smilar pages in the same time. So i need to use template for a page?.

    1) Can i create template on the base of existed page and use it? How to add avia tags and blocks to the template?
    2)

    in reply to: Layout template bulk modification #802773

    I’m glad to use templates, but didn’t find how to use it. There are layout templates – i can save it and in further use when will create a new page. But i need next modification of the layout on the few similar pages.

    in reply to: Trying to activate "event tracking" on "buy now"-buttons #782154

    Hi Nikko, thank you, it works, but works only with standart buttons, not with the buton in the Contact forms?

    in reply to: Trying to activate "event tracking" on "buy now"-buttons #782110

    Hi John,

    Here is my script code (like in Enfold Bible):

    function ava_custom_script() {
    ?>
    <script type=”text/javascript”>
    (function($) {
    // steam button onclick attribute
    $(‘.button-contact a’).on(‘click’, function(e){ ga(‘send’, ‘event’, ‘button’, ‘click’, ‘Send Request’); });
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script’);

    And other error:
    Uncaught SyntaxError: Invalid or unexpected token

    in reply to: Trying to activate "event tracking" on "buy now"-buttons #781752

    Hi Mike! Just after page loading i have the same thing…
    Console:
    (index):671 Uncaught SyntaxError: missing ) after argument list
    Line:
    $(‘.button-contact a’).attr(‘onclick’, ‘ga(‘send’, ‘event’, ‘button’, ‘click’, ‘Send Request’)’);

    in reply to: Trying to activate "event tracking" on "buy now"-buttons #781637

    Hi, Did you resolve that problem?

    1) I use this script in function php:
    function ava_custom_script() {
    ?>
    <script type=”text/javascript”>
    (function($) {
    $(“.button-contact a”).attr(“onclick”, “ga(‘send’, ‘event’, ‘button’, ‘click’, ‘Send Request’)”);
    })(jQuery);
    </script>
    <?php
    }
    add_action(‘wp_footer’, ‘ava_custom_script’);

    2) in button i puc custom CSS code button-contact

    3) Made a goal in Analytics with values from script.

    Not workig(((
    Also in debugger i have message
    Uncaught SyntaxError: missing ) after argument list
    in this line:
    $(“.button-contact a”).attr(“onclick”, “ga(‘send’, ‘event’, ‘button’, ‘click’, ‘Send Request’)”);

Viewing 16 posts - 1 through 16 (of 16 total)