Send custom event to dataLayer on error page

Indenlametion more like
On 15 Oct 2014 17:42, "Steven Wilkin" <notifications@github.com> wrote:

> In app/views/layouts/error.html.erb:
>
> > @@ -14,5 +14,13 @@
> >      </main>
> >    </div>
> >
> > +  <% content_for(:javascripts) do %>
> > +  <script>
> > +  if (Object.prototype.toString.call(dataLayer) === '[object Array]') {
> > +    dataLayer.push({'event': 'error_500'});
> > +  }
> > +  </script>
> > +  <% end %>
>
> You don't believe in indentation?
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/moneyadviceservice/frontend/pull/735/files#r18905728>.
>