Hello,
I want to create an event in the dataLayer object (for tracking by Google Tag Manager) when a user sucessfully submitted a bricks form.
Code would be something like:
function my_form_custom_action( $form ) {
<?php } add_action( 'bricks/form/custom_action', 'my_form_custom_action', 10, 1 );
$formId = $fields[‘formId’];
?>
When I create this with the plugin Codes Snippets, I get the error message:
Snippet konnte nicht erstellt werden. Request failed with status code 403
What do I need to do to make the lines work? Does bricks protect this from being executed?