Category Archives: Uncategorized

GA Ecommerce datalayer

Product Page

Function to get object for Pixel AddToCart in Tag manager

Trigger

Pixel AddToCart

Line break in PHP \r\n

If you want to print special characters like \r\n, you must use double quote, single quotes won’t work.

 

Reference:

  1. https://php.net/manual/en/language.types.string.php
  2. https://stackoverflow.com/questions/7890217/making-a-new-line-with-single-quotes

Select a File (MP4) in Laravel Filemanager

By default, it will download the file when you click on the file. You have to revise a view file to replace onclick listener with “useFile”.

/vendor/unisharp/laravel-filemanager/src/views/grid-view.blade.php