Do countries other than America do a "pledge of allegiance" to their flag in school?
Answer: Yes, but only a handful
According to question and answer site, Quora, (a site where questions are asked, answered, edited, and organized by its community of users) only a handful of countries mimic the United States' pledge of allegiance tradition:
Luis Fernando Mata Licón of Mexico noted that when he was growing up "every Monday public and private schools from elementary to middle school, and some high schools, [should have had] what we call “Honores de la bandera” (flag honors). We watch the flag being carried by the most brilliant students of that month or those who are part of the school’s military band (this varies from school). Then we do a pledge to the flag called “Juramento a la bandera” (pledge to the flag) and after that we sing the national anthem."
In general, most European countries do not pledge allegiance to their flag in an academic setting, a fact that Tag The Flag can independently verify.
According to The American Civil Liberties Union (ACLU), a nonpartisan nonprofit organization whose stated mission is "to defend and preserve the individual rights and liberties guaranteed to every person in this country by the Constitution and laws of the United States" students who decide to sit during the pledge of allegiance or national anthem are exercising their rights to freedom of speech and religion.