Forum Replies Created
-
AuthorPosts
-
September 19, 2019 at 12:44 pm in reply to: Google Analytics and Yandex.Metrica goals for tracking Contact Form in Child The #1139885
Hi, it works! Somebody change GA code for Tags… Very easy. Thank you!!!
September 18, 2019 at 10:24 am in reply to: Google Analytics and Yandex.Metrica goals for tracking Contact Form in Child The #1139370Hello,
Sorry, may be polar bear dead,bu it doesn’t work…
I made a GA goal:
Request
Send
CF_Enfold
1And 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…
February 8, 2019 at 12:22 pm in reply to: Google Analytics and Yandex.Metrica goals for tracking Contact Form in Child The #1064554Hello,
Thank you very much for your great work!
February 3, 2019 at 5:12 pm in reply to: Google Analytics and Yandex.Metrica goals for tracking Contact Form in Child The #1062295Problem 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)
January 26, 2019 at 6:02 am in reply to: Google Analytics and Yandex.Metrica goals for tracking Contact Form in Child The #1059014Hi, few days ago new metrika start to work and new syntaxis:
https://yandex.com/support/metrica/objects/reachgoal.htmlI 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?
January 23, 2019 at 5:35 pm in reply to: Avia Layout Builder – Enfold 4.5.2 WordPress 5.0.3 #1057826Hello,
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…
Hi, thank you, now i can see it)
Hi, i made a new-one
Hi,
I tryed to deactivate them all – no results. You can do it too, no problem, for test.Hello, access ready!)
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)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.
April 24, 2017 at 6:04 am in reply to: Trying to activate "event tracking" on "buy now"-buttons #782154Hi Nikko, thank you, it works, but works only with standart buttons, not with the buton in the Contact forms?
April 24, 2017 at 3:24 am in reply to: Trying to activate "event tracking" on "buy now"-buttons #782110Hi 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 tokenApril 22, 2017 at 7:31 pm in reply to: Trying to activate "event tracking" on "buy now"-buttons #781752Hi 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’)’);April 22, 2017 at 10:22 am in reply to: Trying to activate "event tracking" on "buy now"-buttons #781637Hi, 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’)”); -
AuthorPosts