Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.26 KB

README.md

File metadata and controls

57 lines (36 loc) · 1.26 KB

Northeastern Support

Package of support classes for Northeastern University websites

Installation

You can install the package via composer:

composer require northeastern-web/support

Usage

Meta tags

The package includes the Meta class for any meta related tags.

Add the following code to inside your <head> tag.

<?php echo Northeastern\Support\Meta::head() ?>

If your project is using Laravel Blade's templating engine, you can add the following code.

{!! Northeastern\Support\Meta::head() !!}

Analytics scripts

The package includes the Analytics class for the Northeastern analytics scripts.

Add the following code to inside your <head> tag.

<?php echo Northeastern\Support\Analytics::googleTagManagerScript() ?>

And add the following code just after your opening <body> tag.

<?php echo Northeastern\Support\Analytics::googleTagManagerNoScript() ?>

If your project is using Laravel Blade's templating engine, you can add the following code inside your <head> tag.

{!! Northeastern\Support\Analytics::googleTagManagerScript() !!}

And add the following code just after your opening <body> tag.

{!! Northeastern\Support\Analytics::googleTagManagerNoScript() !!}