Trying to load jQuery inside a js file and when I use include I get the error
Uncaught ReferenceError: include is not defined
This is the code I have
include('https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js');
(function (window) {
"use strict";
var config = {
urlPrefix: "",
visitsUrl: "/ahoy/visits",
eventsUrl: "/ahoy/events",
cookieDomain: null,
page: null,
platform: "Web",
useBeacon: false,
startOnReady: true
};
var ahoy = window.ahoy || window.Ahoy || {};
ahoy.configure = function (options) {
for (var key in options) {
if (options.hasOwnProperty(key)) {
config[key] = options[key];
}
}
};
.......
Is there a different way to load the jQuery?